public abstract class AbstractDirectConnectionHandler extends Object implements WavefrontConnectionHandler, Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDirectConnectionHandler(String server,
String token) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect()
Connects to the server.
|
void |
flush()
Flushes buffer, if applicable
|
protected abstract void |
internalFlush() |
boolean |
isConnected()
Returns true if ready to send data
|
protected javax.ws.rs.core.Response |
report(String format,
InputStream is) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFailureCountpublic void connect()
throws IllegalStateException,
IOException
WavefrontConnectionHandlerconnect in interface WavefrontConnectionHandlerIllegalStateException - if the client is already connectedIOException - if there is an error connectingpublic void flush()
throws IOException
WavefrontConnectionHandlerflush in interface WavefrontConnectionHandlerIOExceptionprotected abstract void internalFlush()
throws IOException
IOExceptionpublic boolean isConnected()
WavefrontConnectionHandlerisConnected in interface WavefrontConnectionHandlerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected javax.ws.rs.core.Response report(String format, InputStream is) throws IOException
IOExceptionCopyright © 2018. All rights reserved.