public class BinarySessionExtension extends Object implements ServerSession.Extension
An extension that encodes/decodes binary data for a ServerSession
.
BinaryExtension
Constructor and Description |
---|
BinarySessionExtension(BayeuxServer bayeuxServer) |
BinarySessionExtension(BayeuxServer bayeuxServer,
boolean decodeToByteBuffer) |
Modifier and Type | Method and Description |
---|---|
boolean |
rcv(ServerSession session,
ServerMessage.Mutable message)
Blocking version of
ServerSession.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
ServerMessage |
send(ServerSession sender,
ServerSession session,
ServerMessage message)
Blocking version of
ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
incoming, outgoing, rcvMeta, sendMeta
public BinarySessionExtension(BayeuxServer bayeuxServer)
public BinarySessionExtension(BayeuxServer bayeuxServer, boolean decodeToByteBuffer)
public boolean rcv(ServerSession session, ServerMessage.Mutable message)
ServerSession.Extension
Blocking version of ServerSession.Extension.incoming(ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.
rcv
in interface ServerSession.Extension
session
- the session that sent the messagemessage
- the incoming messagepublic ServerMessage send(ServerSession sender, ServerSession session, ServerMessage message)
ServerSession.Extension
Blocking version of ServerSession.Extension.outgoing(ServerSession, ServerSession, ServerMessage.Mutable, Promise)
for non-meta messages.
send
in interface ServerSession.Extension
sender
- the session that sent the message or nullsession
- the session receiving the messagemessage
- the outgoing messageCopyright © 2008–2024 The CometD Project. All rights reserved.