public class ClientLargeMessageImpl extends ClientMessageImpl implements ClientLargeMessageInternal
Modifier and Type | Class and Description |
---|---|
protected class |
ClientLargeMessageImpl.HornetQOutputStream |
REPLYTO_HEADER_NAME
address, BODY_OFFSET, bodyBuffer, buffer, BUFFER_HEADER_SPACE, bufferValid, durable, expiration, HDR_BRIDGE_DUPLICATE_ID, HDR_ROUTE_TO_IDS, messageID, priority, properties, timestamp, type
BYTES_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, toString
bodyChanged, 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, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFlowControlSize, isCompressed, onReceipt, setBuffer, setFlowControlSize
acknowledge, getDeliveryCount, setBodyInputStream, setDeliveryCount
bodyChanged, checkCopy, decodeFromBuffer, decodeHeadersAndProperties, encodeHeadersAndProperties, getBodyEncoder, getBodyInputStream, getEncodedBuffer, getEndOfBodyPosition, getEndOfMessagePosition, getHeadersAndPropertiesEncodeSize, getTypedProperties, getWholeBuffer, isServerMessage, resetCopied, setAddressTransient
containsProperty, 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, toMap
public long getLargeMessageSize()
getLargeMessageSize
in interface ClientLargeMessageInternal
public void setLargeMessageSize(long largeMessageSize)
setLargeMessageSize
in interface ClientLargeMessageInternal
largeMessageSize
- the largeMessageSize to setpublic int getEncodeSize()
Message
getEncodeSize
in interface Message
getEncodeSize
in class MessageImpl
public boolean isLargeMessage()
Message
isLargeMessage
in interface Message
isLargeMessage
in class ClientMessageImpl
public void setLargeMessageController(LargeMessageController controller)
setLargeMessageController
in interface ClientLargeMessageInternal
public HornetQBuffer getBodyBuffer()
Message
getBodyBuffer
in interface Message
getBodyBuffer
in class MessageImpl
public int getBodySize()
ClientMessage
getBodySize
in interface ClientMessage
getBodySize
in class ClientMessageImpl
public LargeMessageController getLargeMessageController()
getLargeMessageController
in interface ClientLargeMessageInternal
public void saveToOutputStream(OutputStream out) throws HornetQException
ClientMessage
saveToOutputStream
in interface ClientMessage
saveToOutputStream
in class ClientMessageImpl
HornetQException
public void setOutputStream(OutputStream out) throws HornetQException
ClientMessage
setOutputStream
in interface ClientMessage
setOutputStream
in class ClientMessageImpl
HornetQException
public boolean waitOutputStreamCompletion(long timeMilliseconds) throws HornetQException
ClientMessage
waitOutputStreamCompletion
in interface ClientMessage
waitOutputStreamCompletion
in class ClientMessageImpl
timeMilliseconds
- - 0 means wait foreverHornetQException
public void discardBody()
ClientMessageInternal
discardBody
in interface ClientMessageInternal
discardBody
in class ClientMessageImpl
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.