Package org.openremote.agent.protocol.io
Interface NettyIOClient<T>
- Type Parameters:
T
- Defines the message type that the instance will encode/decode
- All Superinterfaces:
IOClient<T>
- All Known Implementing Classes:
AbstractNettyIOClient
,SerialIOClient
,TCPIOClient
,UDPIOClient
,WebsocketIOClient
,ZWaveSerialIOClient
This is for IO clients that use Netty and are based on
ChannelHandler
s for
encoding/decoding messages of type <T>.-
Method Summary
Modifier and TypeMethodDescriptionvoid
setEncoderDecoderProvider
(Supplier<io.netty.channel.ChannelHandler[]> encoderDecoderProvider) Allows appropriate encoders and decoders to be added to the message pipeline; if anIOClient
doesn't support this then anUnsupportedOperationException
will be thrown, consult theIOClient
's documentation.Methods inherited from interface org.openremote.agent.protocol.io.IOClient
addConnectionStatusConsumer, addMessageConsumer, connect, disconnect, getClientUri, getConnectionStatus, removeAllConnectionStatusConsumers, removeAllMessageConsumers, removeConnectionStatusConsumer, removeMessageConsumer, sendMessage
-
Method Details
-
setEncoderDecoderProvider
void setEncoderDecoderProvider(Supplier<io.netty.channel.ChannelHandler[]> encoderDecoderProvider) throws UnsupportedOperationException Allows appropriate encoders and decoders to be added to the message pipeline; if anIOClient
doesn't support this then anUnsupportedOperationException
will be thrown, consult theIOClient
's documentation.- Throws:
UnsupportedOperationException
-