public class Aggregator extends Object implements IDecoder<ByteBuffer,ByteBuffer>
Modifier and Type | Method and Description |
---|---|
void |
decode(ISession session,
ByteBuffer data,
List<ByteBuffer> out)
Decodes data from one type to another one.
|
Class<ByteBuffer> |
getInboundType()
Returns the type of the accepted inbound objects.
|
Class<ByteBuffer> |
getOutboundType()
Returns the type of the produced outbound objects.
|
public Class<ByteBuffer> getInboundType()
ICodec
getInboundType
in interface ICodec<ByteBuffer,ByteBuffer>
public Class<ByteBuffer> getOutboundType()
ICodec
getOutboundType
in interface ICodec<ByteBuffer,ByteBuffer>
public void decode(ISession session, ByteBuffer data, List<ByteBuffer> out) throws Exception
IDecoder
Decoders that do not produce an output (i.e. the O parameter is
Void
) cannot change the object passed as the data
argument. They should not also store it for future use as its state can
be changed.
The above limitations regarding the data
argument do not apply to
decoders that produce an output.
decode
in interface IDecoder<ByteBuffer,ByteBuffer>
session
- the ISession
which the passed data belongs todata
- the data to decode to another oneout
- the List
to which the decoded data should be added, or
null
if O is Void
Exception
- is thrown, if an error occurCopyright © 2017–2022 SNF4J.ORG. All rights reserved.