public class SocketRuntime
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<FunctionWrapper> |
functions |
protected Options |
options |
protected DefaultFuture |
rootFuture |
protected Transport |
transport |
| Constructor and Description |
|---|
SocketRuntime(Transport transport,
Options options,
DefaultFuture rootFuture,
java.util.List<FunctionWrapper> functions) |
| Modifier and Type | Method and Description |
|---|---|
protected com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
configureAHC(Request request) |
DefaultFuture |
future() |
com.ning.http.client.ListenableFuture<com.ning.http.client.Response> |
httpWrite(Request request,
java.lang.Object object,
java.lang.Object data) |
protected java.lang.Object |
invokeEncoder(java.util.List<Encoder<? extends java.lang.Object,?>> encoders,
java.lang.Object instanceType) |
void |
webSocketWrite(Request request,
java.lang.Object object,
java.lang.Object data) |
Future |
write(Request request,
java.lang.Object data) |
protected Transport transport
protected final Options options
protected final DefaultFuture rootFuture
protected final java.util.List<FunctionWrapper> functions
public SocketRuntime(Transport transport, Options options, DefaultFuture rootFuture, java.util.List<FunctionWrapper> functions)
public DefaultFuture future()
protected java.lang.Object invokeEncoder(java.util.List<Encoder<? extends java.lang.Object,?>> encoders, java.lang.Object instanceType)
public Future write(Request request, java.lang.Object data) throws java.io.IOException
java.io.IOExceptionpublic void webSocketWrite(Request request, java.lang.Object object, java.lang.Object data) throws java.io.IOException
java.io.IOExceptionpublic com.ning.http.client.ListenableFuture<com.ning.http.client.Response> httpWrite(Request request, java.lang.Object object, java.lang.Object data) throws java.io.IOException
java.io.IOExceptionprotected com.ning.http.client.AsyncHttpClient.BoundRequestBuilder configureAHC(Request request)
Copyright © 2019. All Rights Reserved.