public final class WebsocketGatewayClientCodec extends Object implements GatewayClientCodec<io.netty.buffer.ByteBuf>
| Constructor and Description |
|---|
WebsocketGatewayClientCodec() |
WebsocketGatewayClientCodec(boolean releaseDataOnEncode) |
| Modifier and Type | Method and Description |
|---|---|
io.scalecube.services.api.ServiceMessage |
decode(io.netty.buffer.ByteBuf encodedMessage)
Decodes message represented by
T type to ServiceMessage object. |
io.netty.buffer.ByteBuf |
encode(io.scalecube.services.api.ServiceMessage message)
Encodes
ServiceMessage to T type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodeDatapublic WebsocketGatewayClientCodec()
public WebsocketGatewayClientCodec(boolean releaseDataOnEncode)
public io.netty.buffer.ByteBuf encode(io.scalecube.services.api.ServiceMessage message)
GatewayClientCodecServiceMessage to T type.encode in interface GatewayClientCodec<io.netty.buffer.ByteBuf>message - client message to encodeT typepublic io.scalecube.services.api.ServiceMessage decode(io.netty.buffer.ByteBuf encodedMessage)
GatewayClientCodecT type to ServiceMessage object.decode in interface GatewayClientCodec<io.netty.buffer.ByteBuf>encodedMessage - message to decodeServiceMessage typeCopyright © 2015–2021. All rights reserved.