public class SerializedSocket extends DefaultSocket
SerializedSocket is a Socket implementation that guarantees ordered message delivery of
Socket.fire(Object) calls, by serializing fire calls over a SerializedFireStage.
SerializedSocket guarantees to use only one underlying connection at any moment in time, while still
providing an asynchronous fire interface to clients.
Socket.STATUSfunctions, options, request, socketRuntime, transportInUse| Constructor and Description |
|---|
SerializedSocket(SerializedOptions options) |
| Modifier and Type | Method and Description |
|---|---|
SocketRuntime |
createRuntime(DefaultFuture future,
Options options,
List<FunctionWrapper> functions) |
com.ning.http.client.ListenableFuture<com.ning.http.client.Response> |
directWrite(Object encodedPayload) |
SerializedFireStage |
getSerializedFireStage() |
addFunction, close, closeRuntime, connect, fire, getTransport, internalSocket, on, on, on, open, open, request, statuspublic SerializedSocket(SerializedOptions options)
public SocketRuntime createRuntime(DefaultFuture future, Options options, List<FunctionWrapper> functions)
createRuntime in class DefaultSocketpublic SerializedFireStage getSerializedFireStage()
public com.ning.http.client.ListenableFuture<com.ning.http.client.Response> directWrite(Object encodedPayload) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.