public interface ICoreMessage extends Message
BYTES_TYPE, DEFAULT_TYPE, EMBEDDED_TYPE, HDR_ACTUAL_EXPIRY_TIME, HDR_BRIDGE_DUPLICATE_ID, HDR_CONTENT_TYPE, HDR_DUPLICATE_DETECTION_ID, HDR_GROUP_ID, HDR_GROUP_SEQUENCE, HDR_LARGE_BODY_SIZE, HDR_LARGE_COMPRESSED, HDR_LAST_VALUE_NAME, HDR_ORIG_MESSAGE_ID, HDR_ORIGINAL_ADDRESS, HDR_ORIGINAL_QUEUE, HDR_PREFIX, HDR_ROUTE_TO_ACK_IDS, HDR_ROUTE_TO_IDS, HDR_ROUTING_TYPE, HDR_SCALEDOWN_TO_IDS, HDR_SCHEDULED_DELIVERY_TIME, HDR_VALIDATED_USER, INTERNAL_PROPERTY_NAMES_PREDICATE, LARGE_EMBEDDED_TYPE, MAP_TYPE, memoryOffset, OBJECT_TYPE, STREAM_TYPE, TEXT_TYPE
Modifier and Type | Method and Description |
---|---|
ActiveMQBuffer |
getBodyBuffer()
The body used for this message.
|
int |
getBodyBufferSize()
Returns the length in bytes of the body buffer.
|
InputStream |
getBodyInputStream() |
ActiveMQBuffer |
getDataBuffer()
Returns a readOnlyBodyBuffer or a decompressed one if the message is compressed.
|
int |
getEndOfBodyPosition() |
int |
getHeadersAndPropertiesEncodeSize() |
LargeBodyReader |
getLargeBodyReader() |
ActiveMQBuffer |
getReadOnlyBodyBuffer()
Returns a new Buffer slicing the current Body.
|
byte |
getType()
Return the type of the message
|
boolean |
isServerMessage()
We are really interested if this is a LargeServerMessage.
|
void |
moveHeadersAndProperties(Message msg)
Used on large messages treatment.
|
void |
receiveBuffer_1X(io.netty.buffer.ByteBuf buffer)
it will fix the body of incoming messages from 1.x and before versions
|
void |
sendBuffer_1X(io.netty.buffer.ByteBuf sendBuffer) |
CoreMessage |
setType(byte type)
the type of the message
|
default Map<String,Object> |
toMap() |
acceptsConsumer, clearInternalProperties, containsProperty, containsProperty, copy, copy, copy, durableDown, durableUp, getAddress, getAddressSimpleString, getAnnotation, getAnnotationString, getBooleanProperty, getBooleanProperty, getBrokerProperty, getBuffer, getByteProperty, getByteProperty, getBytesProperty, getBytesProperty, getConnectionID, getCorrelationID, getDoubleProperty, getDoubleProperty, getDuplicateIDBytes, getDuplicateProperty, getDurableCount, getEncodeSize, getExpiration, getExtraBytesProperty, getFloatProperty, getFloatProperty, getGroupID, getGroupSequence, getIntProperty, getIntProperty, getLastValueProperty, getLongProperty, getLongProperty, getMemoryEstimate, getMessageID, getObjectProperty, getObjectProperty, getObjectPropertyForFilter, getPersistentSize, getPersister, getPersistSize, getPriority, getPropertyNames, getRefCount, getReplyTo, getRoutingType, getScheduledDeliveryTime, getShortProperty, getShortProperty, getSimpleStringProperty, getSimpleStringProperty, getStringProperty, getStringProperty, getTimestamp, getUsage, getUserID, getValidatedUserID, getWholeMessageSize, hasScheduledDeliveryTime, isDurable, isExpired, isLargeMessage, messageChanged, persist, putBooleanProperty, putBooleanProperty, putByteProperty, putByteProperty, putBytesProperty, putBytesProperty, putCharProperty, putCharProperty, putDoubleProperty, putDoubleProperty, putExtraBytesProperty, putFloatProperty, putFloatProperty, putIntProperty, putIntProperty, putLongProperty, putLongProperty, putObjectProperty, putObjectProperty, putShortProperty, putShortProperty, putStringProperty, putStringProperty, putStringProperty, receiveBuffer, reencode, refDown, referenceOriginalMessage, refUp, rejectConsumer, releaseBuffer, reloadPersistence, removeAnnotation, removeExtraBytesProperty, removeProperty, removeProperty, sendBuffer, setAddress, setAddress, setAnnotation, setBrokerProperty, setBuffer, setConnectionID, setCorrelationID, setDurable, setExpiration, setGroupID, setGroupID, setGroupSequence, setLastValueProperty, setMessageID, setPriority, setReplyTo, setRoutingType, setScheduledDeliveryTime, setTimestamp, setUserID, setValidatedUserID, toCore, toCore, toPropertyMap, usageDown, usageUp
LargeBodyReader getLargeBodyReader() throws ActiveMQException
ActiveMQException
int getHeadersAndPropertiesEncodeSize()
InputStream getBodyInputStream()
getBodyInputStream
in interface Message
ActiveMQBuffer getReadOnlyBodyBuffer()
int getBodyBufferSize()
ActiveMQBuffer getDataBuffer()
CoreMessage setType(byte type)
boolean isServerMessage()
ActiveMQBuffer getBodyBuffer()
getBodyBuffer
in interface Message
int getEndOfBodyPosition()
void moveHeadersAndProperties(Message msg)
void sendBuffer_1X(io.netty.buffer.ByteBuf sendBuffer)
void receiveBuffer_1X(io.netty.buffer.ByteBuf buffer)
Copyright © 2021 JBoss by Red Hat. All rights reserved.