- off(String, Action<T>) - Method in interface io.cettia.ServerSocket
-
Removes a given event handler for a given event.
- on(ServerTransport) - Method in class io.cettia.DefaultServer
-
- on(String, Action<T>) - Method in interface io.cettia.ServerSocket
-
Adds a given event handler for a given event.
- on(ServerHttpExchange) - Method in class io.cettia.transport.http.HttpTransportServer
-
- on(ServerWebSocket) - Method in class io.cettia.transport.websocket.WebSocketTransportServer
-
- onbinary(Action<ByteBuffer>) - Method in class io.cettia.transport.BaseServerTransport
-
- onbinary(Action<ByteBuffer>) - Method in interface io.cettia.transport.ServerTransport
-
Attaches an action for the binary message.
- oncache(Action<Object[]>) - Method in interface io.cettia.ServerSocket
-
Adds a cache event handler to be called if one of send
methods is called when
there is no connection.
- onclose(Action<Void>) - Method in interface io.cettia.ServerSocket
-
Adds a close event handler to be called when the underlying transport is closed for any reason.
- onclose(Action<Void>) - Method in class io.cettia.transport.BaseServerTransport
-
- onclose(Action<Void>) - Method in interface io.cettia.transport.ServerTransport
-
Attaches an action for the close event.
- ondelete(Action<Void>) - Method in interface io.cettia.ServerSocket
-
Adds a delete event handler to be called when the socket is in the closed state for a long
time i.e.
- onerror(Action<Throwable>) - Method in interface io.cettia.ServerSocket
-
Adds an error event handler to be called if there was any error on the socket.
- onerror(Action<Throwable>) - Method in class io.cettia.transport.BaseServerTransport
-
- onerror(Action<Throwable>) - Method in interface io.cettia.transport.ServerTransport
-
Executed if there was any error on the connection.
- onopen(Action<Void>) - Method in interface io.cettia.ServerSocket
-
Adds an open event handler to be called when the handshake is performed successfully and
communication is possible.
- onpublish(Action<Map<String, Object>>) - Method in class io.cettia.ClusteredServer
-
Adds an action to be called with a message to be published to every node in the cluster.
- onsocket(Action<ServerSocket>) - Method in class io.cettia.DefaultServer
-
- onsocket(Action<ServerSocket>) - Method in interface io.cettia.Server
-
Adds a socket event handler to be called when the socket has been created in this server.
- ontext(Action<String>) - Method in class io.cettia.transport.BaseServerTransport
-
- ontext(Action<String>) - Method in interface io.cettia.transport.ServerTransport
-
Attaches an action for the text message.
- ontransport(Action<ServerTransport>) - Method in class io.cettia.transport.http.HttpTransportServer
-
- ontransport(Action<ServerTransport>) - Method in interface io.cettia.transport.TransportServer
-
Registers an action to be called when the transport has been opened.
- ontransport(Action<ServerTransport>) - Method in class io.cettia.transport.websocket.WebSocketTransportServer
-
- send(String) - Method in interface io.cettia.AbstractServerSocket
-
Sends a given event without data.
- send(String, Object) - Method in interface io.cettia.AbstractServerSocket
-
Sends a given event with data.
- send(String) - Method in class io.cettia.Sentence
-
- send(String, Object) - Method in class io.cettia.Sentence
-
- send(String, Object, Action<T>) - Method in interface io.cettia.ServerSocket
-
Sends a given event with data attaching resolved callback.
- send(String, Object, Action<T>, Action<U>) - Method in interface io.cettia.ServerSocket
-
Sends a given event with data attaching resolved callback and rejected callback.
- send(String) - Method in class io.cettia.transport.BaseServerTransport
-
- send(ByteBuffer) - Method in class io.cettia.transport.BaseServerTransport
-
- send(String) - Method in interface io.cettia.transport.ServerTransport
-
Sends a text message through the connection.
- send(ByteBuffer) - Method in interface io.cettia.transport.ServerTransport
-
Sends a binary message through the connection.
- Sentence - Class in io.cettia
-
Sentence
is a series of predicates that a group of socket have to follow.
- Server - Interface in io.cettia
-
Interface used to interact with sockets.
- ServerSocket - Interface in io.cettia
-
Interface used to interact with the remote socket.
- ServerSocket.Reply<T> - Interface in io.cettia
-
Interface to deal with reply.
- ServerSocket.State - Enum in io.cettia
-
Enumeration of the state of the socket.
- ServerTransport - Interface in io.cettia.transport
-
Represents a server-side full duplex message channel ensuring there is no
message loss and no idle connection.
- set_heartbeat(int) - Method in class io.cettia.DefaultServer
-
To speed up the protocol tests.
- setHeartbeat(int) - Method in class io.cettia.DefaultServer
-
A heartbeat interval in milliseconds to maintain a connection alive and prevent server from
holding idle connections.
- state() - Method in interface io.cettia.ServerSocket
-
The current state of the socket.