org.atmosphere.wasync.impl
Class SocketRuntime

java.lang.Object
  extended by org.atmosphere.wasync.impl.SocketRuntime
Direct Known Subclasses:
SerialSocketRuntime

public class SocketRuntime
extends Object


Field Summary
protected  List<FunctionWrapper> functions
           
protected  Options options
           
protected  DefaultFuture rootFuture
           
protected  com.ning.http.client.websocket.WebSocket webSocket
           
 
Constructor Summary
SocketRuntime(Options options, DefaultFuture rootFuture, List<FunctionWrapper> functions)
           
SocketRuntime(com.ning.http.client.websocket.WebSocket webSocket, Options options, DefaultFuture rootFuture, List<FunctionWrapper> functions)
           
 
Method Summary
 DefaultFuture future()
           
 com.ning.http.client.ListenableFuture<com.ning.http.client.Response> httpWrite(Request request, Object object, Object data)
           
protected  Object invokeEncoder(List<Encoder<? extends Object,?>> encoders, Object instanceType)
           
 void webSocketWrite(Request request, Object object, Object data)
           
 Future write(Request request, Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webSocket

protected final com.ning.http.client.websocket.WebSocket webSocket

options

protected final Options options

rootFuture

protected final DefaultFuture rootFuture

functions

protected final List<FunctionWrapper> functions
Constructor Detail

SocketRuntime

public SocketRuntime(com.ning.http.client.websocket.WebSocket webSocket,
                     Options options,
                     DefaultFuture rootFuture,
                     List<FunctionWrapper> functions)

SocketRuntime

public SocketRuntime(Options options,
                     DefaultFuture rootFuture,
                     List<FunctionWrapper> functions)
Method Detail

future

public DefaultFuture future()

invokeEncoder

protected Object invokeEncoder(List<Encoder<? extends Object,?>> encoders,
                               Object instanceType)

write

public Future write(Request request,
                    Object data)
             throws IOException
Throws:
IOException

webSocketWrite

public void webSocketWrite(Request request,
                           Object object,
                           Object data)
                    throws IOException
Throws:
IOException

httpWrite

public com.ning.http.client.ListenableFuture<com.ning.http.client.Response> httpWrite(Request request,
                                                                                      Object object,
                                                                                      Object data)
                                                                               throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.