org.opcfoundation.ua.transport.tcp.nio
Class MessageToChunks
java.lang.Object
org.opcfoundation.ua.transport.tcp.nio.MessageToChunks
- All Implemented Interfaces:
- Callable<ByteBuffer[]>
public class MessageToChunks
- extends Object
- implements Callable<ByteBuffer[]>
Encodes messages to chunks.
Returns an array of plaintexts whose content is partially filled.
Chunk size, padding and plaintext is written, but footer and header is missing.
ByteOrder is Little Endian.
Encoder also asserts that message size and chunk count is with-in limits.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageToChunks
public MessageToChunks(IEncodeable msg,
TcpConnectionParameters ctx,
EncoderContext encoderCtx,
ChunkFactory chunkFactory,
MessageType type)
Constructor for MessageToChunks.
- Parameters:
msg - a IEncodeable object.ctx - a TcpConnectionParameters object.encoderCtx - a EncoderContext object.chunkFactory - a ChunkFactory object.type - a MessageType object.
call
public ByteBuffer[] call()
throws RuntimeServiceResultException
-
- Specified by:
call in interface Callable<ByteBuffer[]>
- Throws:
RuntimeServiceResultException
Copyright © 2018. All rights reserved.