java.lang.Object
org.cometd.server.ext.BinarySessionExtension
- All Implemented Interfaces:
ServerSession.Extension
An extension that encodes/decodes binary data for a ServerSession
.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBinarySessionExtension
(BayeuxServer bayeuxServer) BinarySessionExtension
(BayeuxServer bayeuxServer, boolean decodeToByteBuffer) -
Method Summary
Modifier and TypeMethodDescriptionboolean
rcv
(ServerSession session, ServerMessage.Mutable message) Blocking version ofServerSession.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.send
(ServerSession sender, ServerSession session, ServerMessage message) Blocking version ofServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cometd.bayeux.server.ServerSession.Extension
incoming, outgoing, rcvMeta, sendMeta
-
Constructor Details
-
BinarySessionExtension
-
BinarySessionExtension
-
-
Method Details
-
rcv
Description copied from interface:ServerSession.Extension
Blocking version of
ServerSession.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.- Specified by:
rcv
in interfaceServerSession.Extension
- Parameters:
session
- the session that sent the messagemessage
- the incoming message- Returns:
- whether message processing should continue
-
send
Description copied from interface:ServerSession.Extension
Blocking version of
ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.- Specified by:
send
in interfaceServerSession.Extension
- Parameters:
sender
- the session that sent the message or nullsession
- the session receiving the messagemessage
- the outgoing message- Returns:
- the message to send or null to not send the message
-