public abstract class SockJSSocketBase extends java.lang.Object implements SockJSSocket
| Modifier | Constructor and Description |
|---|---|
protected |
SockJSSocketBase(Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close it
|
java.lang.String |
writeHandlerID()
When a
SockJSSocket is created it automatically registers an event handler with the event bus, the ID of that
handler is given by writeHandlerID. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataHandler, endHandler, pause, resumedrainHandler, setWriteQueueMaxSize, write, writeQueueFullexceptionHandlerprotected final Vertx vertx
protected SockJSSocketBase(Vertx vertx)
public java.lang.String writeHandlerID()
SockJSSocketSockJSSocket is created it automatically registers an event handler with the event bus, the ID of that
handler is given by writeHandlerID.Given this ID, a different event loop can send a buffer to that event handler using the event bus and that buffer will be received by this instance in its own event loop and written to the underlying socket. This allows you to write data to other sockets which are owned by different event loops.
writeHandlerID in interface SockJSSocketpublic void close()
SockJSSocketclose in interface SockJSSocket