com.sun.grizzly.websockets
Class NioClientWebSocket

java.lang.Object
  extended by com.sun.grizzly.websockets.BaseWebSocket
      extended by com.sun.grizzly.websockets.NioClientWebSocket
All Implemented Interfaces:
WebSocket

public class NioClientWebSocket
extends BaseWebSocket


Field Summary
protected  long selectTimeout
           
 
Constructor Summary
NioClientWebSocket(String url, long timeout, WebSocketListener... listeners)
           
NioClientWebSocket(String url, WebSocketListener... listeners)
           
 
Method Summary
protected  NioClientNetworkHandler createNetworkHandler(Selector selector)
           
 void execute(Runnable runnable)
           
 URL getAddress()
           
 
Methods inherited from class com.sun.grizzly.websockets.BaseWebSocket
add, close, getListeners, getNetworkHandler, isConnected, onClose, onConnect, onMessage, remove, send, send, setNetworkHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectTimeout

protected volatile long selectTimeout
Constructor Detail

NioClientWebSocket

public NioClientWebSocket(String url,
                          WebSocketListener... listeners)
                   throws IOException
Throws:
IOException

NioClientWebSocket

public NioClientWebSocket(String url,
                          long timeout,
                          WebSocketListener... listeners)
                   throws IOException
Throws:
IOException
Method Detail

getAddress

public URL getAddress()

execute

public void execute(Runnable runnable)

createNetworkHandler

protected NioClientNetworkHandler createNetworkHandler(Selector selector)
                                                throws IOException
Throws:
IOException


Copyright © 2011 Oracle Corpration. All Rights Reserved.