Package | Description |
---|---|
io.cettia |
Modifier and Type | Method and Description |
---|---|
<T> ServerSocket |
ServerSocket.off(String event,
io.cettia.platform.action.Action<T> action)
Removes a given event handler for a given event.
|
<T> ServerSocket |
ServerSocket.on(String event,
io.cettia.platform.action.Action<T> action)
Adds a given event handler for a given event.
|
ServerSocket |
ServerSocket.onclose(io.cettia.platform.action.Action<Void> action)
Executed if the socket is closed for any reason.
|
ServerSocket |
ServerSocket.onerror(io.cettia.platform.action.Action<Throwable> action)
Executed if there was any error on the socket.
|
<T> ServerSocket |
ServerSocket.send(String event,
Object data,
io.cettia.platform.action.Action<T> resolved)
Sends a given event with data attaching resolved callback.
|
<T,U> ServerSocket |
ServerSocket.send(String event,
Object data,
io.cettia.platform.action.Action<T> resolved,
io.cettia.platform.action.Action<U> rejected)
Sends a given event with data attaching resolved callback and rejected
callback.
|
Modifier and Type | Method and Description |
---|---|
Server |
Server.all(io.cettia.platform.action.Action<ServerSocket> action)
Executes the given action retrieving every socket in this server.
|
Server |
DefaultServer.all(io.cettia.platform.action.Action<ServerSocket> action) |
Server |
ClusteredServer.all(io.cettia.platform.action.Action<ServerSocket> action) |
Server |
Server.byTag(String[] names,
io.cettia.platform.action.Action<ServerSocket> action)
Executes the given action retrieving the socket tagged with the given
tags in this server.
|
Server |
DefaultServer.byTag(String[] names,
io.cettia.platform.action.Action<ServerSocket> action) |
Server |
ClusteredServer.byTag(String[] names,
io.cettia.platform.action.Action<ServerSocket> action) |
Server |
Server.byTag(String name,
io.cettia.platform.action.Action<ServerSocket> action)
Executes the given action retrieving the socket tagged with the given tag
in this server.
|
Server |
DefaultServer.byTag(String name,
io.cettia.platform.action.Action<ServerSocket> action) |
Server |
Server.onsocket(io.cettia.platform.action.Action<ServerSocket> action)
Registers an action to be called when the socket has been opened in this
server.
|
Server |
DefaultServer.onsocket(io.cettia.platform.action.Action<ServerSocket> action) |
Copyright 2015, The Cettia Project