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
ChannelHandlers for
encoding/decoding messages of type <T>.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetEncoderDecoderProvider(Supplier<io.netty.channel.ChannelHandler[]> encoderDecoderProvider) Allows appropriate encoders and decoders to be added to the message pipeline; if anIOClientdoesn't support this then anUnsupportedOperationExceptionwill 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 anIOClientdoesn't support this then anUnsupportedOperationExceptionwill be thrown, consult theIOClient's documentation.- Throws:
UnsupportedOperationException
-