Modifier and Type | Method and Description |
---|---|
ServerSocket |
ServerSocket.closeAction(org.atmosphere.vibe.platform.Action<Void> action)
Equivalent to
socket.on("close", action) |
ServerSocket |
ServerSocket.errorAction(org.atmosphere.vibe.platform.Action<Throwable> action)
Equivalent to
socket.on("error", action) |
<T> ServerSocket |
ServerSocket.off(String event,
org.atmosphere.vibe.platform.Action<T> action)
Removes a given added event handler for a given event.
|
<T> ServerSocket |
ServerSocket.on(String event,
org.atmosphere.vibe.platform.Action<T> action)
Adds a given event handler for a given event.
|
<T> ServerSocket |
ServerSocket.send(String event,
Object data,
org.atmosphere.vibe.platform.Action<T> resolved)
Sends a given event with data attaching resolved callback.
|
<T,U> ServerSocket |
ServerSocket.send(String event,
Object data,
org.atmosphere.vibe.platform.Action<T> resolved,
org.atmosphere.vibe.platform.Action<U> rejected)
Sends a given event with data attaching resolved callback
and rejected callback.
|
Modifier and Type | Method and Description |
---|---|
Server |
Server.all(org.atmosphere.vibe.platform.Action<ServerSocket> action)
Executes the given action retrieving all of the socket in this server or
all of the server if it's in a clustered environment .
|
Server |
DefaultServer.all(org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
ClusteredServer.all(org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
Server.byId(String id,
org.atmosphere.vibe.platform.Action<ServerSocket> action)
Executes the given action retrieving the socket of the given id in this
server or all of the server if it's in a clustered environment.
|
Server |
DefaultServer.byId(String id,
org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
ClusteredServer.byId(String id,
org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
Server.byTag(String[] names,
org.atmosphere.vibe.platform.Action<ServerSocket> action)
Executes the given action retrieving the socket tagged with all of the
given names in this server or all of the server if it's in a clustered
environment.
|
Server |
DefaultServer.byTag(String[] names,
org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
ClusteredServer.byTag(String[] names,
org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
Server.byTag(String name,
org.atmosphere.vibe.platform.Action<ServerSocket> action)
Executes the given action retrieving the socket tagged with the given
name in this server or all of the server if it's in a clustered
environment.
|
Server |
DefaultServer.byTag(String name,
org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Server |
Server.socketAction(org.atmosphere.vibe.platform.Action<ServerSocket> action)
Registers an action to be called when the socket has been opened in this
server regardless of clustering.
|
Server |
DefaultServer.socketAction(org.atmosphere.vibe.platform.Action<ServerSocket> action) |
Copyright 2014, The Vibe Project