public class InMessage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InMessage.ReceivedState |
Modifier and Type | Field and Description |
---|---|
protected boolean |
complete
Keep whether we have all the buffers added
|
protected MessageHeader |
header
The message header
|
Constructor and Description |
---|
InMessage(int originatingId,
MessageType messageType,
ChannelMessageReleaseCallback releaseListener,
MessageHeader header) |
protected MessageHeader header
protected boolean complete
public InMessage(int originatingId, MessageType messageType, ChannelMessageReleaseCallback releaseListener, MessageHeader header)
public void setDataType(MessageType dataType)
public MessageType getDataType()
public void setKeyType(MessageType keyType)
public MessageType getKeyType()
public MessageHeader getHeader()
public boolean addBufferAndCalculate(DataBuffer buffer)
buffer
- bufferpublic void addCurrentKeyedObject()
public void addCurrentObject()
public void addBuiltMessage(ChannelMessage channelMessage)
public ChannelMessageReleaseCallback getReleaseListener()
public int getOriginatingId()
public java.util.Queue<DataBuffer> getBuffers()
public InMessage.ReceivedState getReceivedState()
public void setReceivedState(InMessage.ReceivedState receivedState)
public java.util.Queue<ChannelMessage> getBuiltMessages()
public java.lang.Object getDeserializedData()
public int getUnPkCurrentObjectLength()
public void setUnPkCurrentObjectLength(int unPkCurrentObjectLength)
public int getUnPkCurrentKeyLength()
public void setUnPkCurrentKeyLength(int unPkCurrentKeyLength)
public int getUnPkNumberObjects()
public int getUnPkBuffers()
public void incrementUnPkBuffers()
public boolean isKeyed()
public boolean isReadingKey()
public void setReadingKey(boolean readingKey)
public ObjectBuilderImpl getDataBuilder()
public ObjectBuilderImpl getKeyBuilder()