public class ProxyConnectionHandler extends Object implements BufferFlusher, Closeable
| Modifier | Constructor and Description |
|---|---|
protected |
ProxyConnectionHandler(InetSocketAddress address,
SocketFactory socketFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
void |
flush()
Flushes buffer, if applicable
|
int |
getFailureCount()
Returns the number of failed writes to the server.
|
void |
incrementFailureCount() |
boolean |
isConnected() |
protected void |
sendData(String lineData)
Sends the given data to the WavefrontProxyClient proxy.
|
protected ProxyConnectionHandler(InetSocketAddress address, SocketFactory socketFactory)
public void connect()
throws IllegalStateException,
IOException
IllegalStateExceptionIOExceptionpublic boolean isConnected()
public int getFailureCount()
BufferFlushergetFailureCount in interface BufferFlusherpublic void incrementFailureCount()
public void flush()
throws IOException
BufferFlusherflush in interface BufferFlusherIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019. All rights reserved.