GeezerVison is showing netty.io — CompatibleMarshallingDecoder (Netty API Reference (4.1.141.Final))
Class CompatibleMarshallingDecoder
-
-
Field Summary
Fields
Modifier and Type
Field
Description
protected final int
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
protected void
Decode the from one ByteBuf to an other.
protected void
void
callDecode, checkpoint, checkpoint, state, state
Modifier and Type
Method
Description
protected void
Called once data should be decoded from the given ByteBuf.
protected void
Stores the internal cumulative buffer's reader position.
protected void
Stores the internal cumulative buffer's reader position and updates
the current decoder state.
Returns the current state of this decoder.
Sets the current state of this decoder.
actualReadableBytes, channelInactive, channelRead, channelReadComplete, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
void
void
void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
-
maxObjectSize
protected final int maxObjectSize
-
Constructor Details
-
CompatibleMarshallingDecoder
- Parameters:
provider - the UnmarshallerProvider which is used to obtain the Unmarshaller
for the Channel
maxObjectSize - the maximal size (in bytes) of the Object to unmarshal. Once the size is
exceeded the Channel will get closed. Use a maxObjectSize of
Integer.MAX_VALUE to disable this. You should only do this if you are sure
that the received Objects will never be big and the sending side are trusted, as this
opens the possibility for a DOS-Attack due an OutOfMemoryError.
-
|