com.sun.grizzly.filter
Class FragmentMessage
java.lang.Object
com.sun.grizzly.filter.MessageBase
com.sun.grizzly.filter.FragmentMessage
- All Implemented Interfaces:
- Message
public class FragmentMessage
- extends MessageBase
Since the Custom Protocol is a fixed sized Protocol
when the size of an Message is larger than Message.MessageMaxLength
8192 an Message gets split into Fragments. The Contract is that the first Message for Example
RequestMessage
gets its Flag moreFragmentsToFollow set and then
n FragmentMessage Messages follow the last one returning moreFragmentsToFollow()==false.
- Version:
- 1.0
- Author:
- John Vieten 22.06.2008
Fields inherited from interface com.sun.grizzly.filter.Message |
APPLICATION_LAYER_ERROR_BIT, CurrentVersion, GZIP_BIT, HeaderLength, Magic, MagicByteLength, Message_Error, Message_Fragment, Message_Reply, Message_Request, MessageMaxLength, MORE_FRAGMENTS_BIT |
Methods inherited from class com.sun.grizzly.filter.MessageBase |
checkMagic, getMessageSize, getMessageType, getNeededBytesSize, getRequestId, getSessionId, getUniqueMessageId, isApplicationLayerException, isClean, isError, isGzip, moreFragmentsToFollow, parseHeader, setMessageType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FragmentMessage
public FragmentMessage()
addByteBuffer
public void addByteBuffer(ByteBuffer byteBuffer)
getByteBufferList
public List<ByteBuffer> getByteBufferList()
Copyright © 2012 Oracle Corporation. All Rights Reserved.