public class ClientLargeMessageImpl extends ClientMessageImpl implements ClientLargeMessageInternal
| Modifier and Type | Class and Description |
|---|---|
protected class |
ClientLargeMessageImpl.HornetQOutputStream |
REPLYTO_HEADER_NAMEaddress, BODY_OFFSET, bodyBuffer, buffer, BUFFER_HEADER_SPACE, bufferValid, durable, expiration, HDR_BRIDGE_DUPLICATE_ID, HDR_ROUTE_TO_IDS, messageID, priority, properties, timestamp, typeBYTES_TYPE, DEFAULT_TYPE, HDR_ACTUAL_EXPIRY_TIME, HDR_DUPLICATE_DETECTION_ID, HDR_GROUP_ID, HDR_LARGE_BODY_SIZE, HDR_LARGE_COMPRESSED, HDR_LAST_VALUE_NAME, HDR_ORIG_MESSAGE_ID, HDR_ORIGINAL_ADDRESS, HDR_SCHEDULED_DELIVERY_TIME, MAP_TYPE, OBJECT_TYPE, STREAM_TYPE, TEXT_TYPE| Constructor and Description |
|---|
ClientLargeMessageImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
discardBody()
Discard unused packets (used on large-message)
|
HornetQBuffer |
getBodyBuffer()
Returns the message body as a HornetQBuffer
|
int |
getBodySize()
Return the size (in bytes) of this message's body
|
int |
getEncodeSize()
Returns the size of the encoded message.
|
LargeMessageController |
getLargeMessageController() |
long |
getLargeMessageSize() |
boolean |
isLargeMessage()
Returns whether this message is a large message or a regular message.
|
void |
saveToOutputStream(OutputStream out)
Saves the content of the message to the OutputStream.
|
void |
setLargeMessageController(LargeMessageController controller) |
void |
setLargeMessageSize(long largeMessageSize) |
void |
setOutputStream(OutputStream out)
Sets the OutputStream that will receive the content of a message received in a non blocking way.
|
boolean |
waitOutputStreamCompletion(long timeMilliseconds)
Wait the outputStream completion of the message.
|
acknowledge, getBodyEncoder, getBodyInputStream, getDeliveryCount, getFlowControlSize, isCompressed, isServerMessage, onReceipt, setBodyInputStream, setBuffer, setDeliveryCount, setFlowControlSize, toStringbodyChanged, checkCopy, containsProperty, containsProperty, copyHeadersAndProperties, createBody, decode, decodeFromBuffer, decodeHeadersAndProperties, encode, encodeHeadersAndProperties, getAddress, getBooleanProperty, getBooleanProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getExpiration, getFloatProperty, getFloatProperty, getHeadersAndPropertiesEncodeSize, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getMessageID, getObjectProperty, getObjectProperty, getPriority, getPropertyNames, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getType, getTypedProperties, getUserID, getWholeBuffer, isDurable, isExpired, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putTypedProperties, removeProperty, removeProperty, resetCopied, setAddress, setAddressTransient, setDurable, setExpiration, setPriority, setTimestamp, setType, setUserID, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFlowControlSize, isCompressed, onReceipt, setBuffer, setFlowControlSizeacknowledge, getDeliveryCount, setBodyInputStream, setDeliveryCountbodyChanged, checkCopy, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getBodyInputStream, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, isServerMessage, resetCopied, setAddressTransientcontainsProperty, containsProperty, getAddress, getBooleanProperty, getBooleanProperty, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getDoubleProperty, getDoubleProperty, getExpiration, getFloatProperty, getFloatProperty, getIntProperty, getIntProperty, getLongProperty, getLongProperty, getMessageID, getObjectProperty, getObjectProperty, getPriority, getPropertyNames, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getType, getUserID, isDurable, isExpired, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putDoubleProperty, putDoubleProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, removeProperty, removeProperty, setAddress, setDurable, setExpiration, setPriority, setTimestamp, setUserID, toMappublic long getLargeMessageSize()
getLargeMessageSize in interface ClientLargeMessageInternalpublic void setLargeMessageSize(long largeMessageSize)
setLargeMessageSize in interface ClientLargeMessageInternallargeMessageSize - the largeMessageSize to setpublic int getEncodeSize()
MessagegetEncodeSize in interface MessagegetEncodeSize in class MessageImplpublic boolean isLargeMessage()
MessageisLargeMessage in interface MessageisLargeMessage in class ClientMessageImplpublic void setLargeMessageController(LargeMessageController controller)
setLargeMessageController in interface ClientLargeMessageInternalpublic HornetQBuffer getBodyBuffer()
MessagegetBodyBuffer in interface MessagegetBodyBuffer in class MessageImplpublic int getBodySize()
ClientMessagegetBodySize in interface ClientMessagegetBodySize in class ClientMessageImplpublic LargeMessageController getLargeMessageController()
getLargeMessageController in interface ClientLargeMessageInternalpublic void saveToOutputStream(OutputStream out) throws HornetQException
ClientMessagesaveToOutputStream in interface ClientMessagesaveToOutputStream in class ClientMessageImplHornetQExceptionpublic void setOutputStream(OutputStream out) throws HornetQException
ClientMessagesetOutputStream in interface ClientMessagesetOutputStream in class ClientMessageImplHornetQExceptionpublic boolean waitOutputStreamCompletion(long timeMilliseconds)
throws HornetQException
ClientMessagewaitOutputStreamCompletion in interface ClientMessagewaitOutputStreamCompletion in class ClientMessageImpltimeMilliseconds - - 0 means wait foreverHornetQExceptionpublic void discardBody()
ClientMessageInternaldiscardBody in interface ClientMessageInternaldiscardBody in class ClientMessageImplCopyright © 2012 JBoss by Red Hat. All Rights Reserved.