public class BinaryExtension extends ClientSession.Extension.Adapter
A client extension that encodes byte[] or ByteBuffer into a BinaryData
object using the Z85 format for outgoing messages, and decodes BinaryData
objects back into byte[] or ByteBuffer for incoming messages.
ClientSession.Extension.Adapter| Constructor and Description |
|---|
BinaryExtension() |
BinaryExtension(boolean decodeToByteBuffer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
rcv(ClientSession session,
Message.Mutable message) |
boolean |
send(ClientSession session,
Message.Mutable message) |
rcvMeta, sendMetapublic BinaryExtension()
public BinaryExtension(boolean decodeToByteBuffer)
public boolean rcv(ClientSession session, Message.Mutable message)
rcv in interface ClientSession.Extensionrcv in class ClientSession.Extension.Adapterpublic boolean send(ClientSession session, Message.Mutable message)
send in interface ClientSession.Extensionsend in class ClientSession.Extension.AdapterCopyright © 2008–2019 The CometD Project. All rights reserved.