Interface JmsMapMessageFacade
- All Superinterfaces:
JmsMessageFacade,TraceableMessage
- All Known Implementing Classes:
AmqpJmsMapMessageFacade
Interface for a message Facade that wraps a MapMessage style provider
message.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a new instance and perform a deep copy of this object's contents.Gets the value stored in the Map at the specified key.Returns an Enumeration of all the names in the MapMessage object.booleanitemExists(String key) Determines whether an item exists in this Map based message.voidSets an object value with the specified name into the Map.Remove the mapping for this key from the map if present.Methods inherited from interface org.apache.qpid.jms.message.facade.JmsMessageFacade
clearBody, clearProperties, encodeMessage, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, hasBody, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytesMethods inherited from interface org.apache.qpid.jms.tracing.TraceableMessage
filterTracingAnnotations, getTracingAnnotation, getTracingContext, removeTracingAnnotation, removeTracingContext, setTracingAnnotation, setTracingContext
-
Method Details
-
copy
Description copied from interface:JmsMessageFacadeCreate a new instance and perform a deep copy of this object's contents.- Specified by:
copyin interfaceJmsMessageFacade- Returns:
- a deep copy of this Message Facade including a complete copy of the byte contents of the wrapped message.
- Throws:
jakarta.jms.JMSException- if an error occurs while copying this message.
-
getMapNames
Enumeration<String> getMapNames()Returns an Enumeration of all the names in the MapMessage object.- Returns:
- an enumeration of all the names in this MapMessage
-
itemExists
Determines whether an item exists in this Map based message.- Parameters:
key- The entry key that is being searched for.- Returns:
- true if the item exists in the Map, false otherwise.
-
get
Gets the value stored in the Map at the specified key.- Parameters:
key- the key to use to access a value in the Map.- Returns:
- the item associated with the given key, or null if not present.
-
put
Sets an object value with the specified name into the Map. If a previous mapping for the key exists, the old value is replaced by the specified value. If the value provided is a byte[] its entry then it is assumed that it was copied by the caller and its value will not be altered by the provider.- Parameters:
key- the key to use to store the value into the Map.value- the new value to store in the element defined by the key.
-
remove
Remove the mapping for this key from the map if present. If the value is not present in the map then this method should return without error or modification to the underlying map.- Parameters:
key- the key to be removed from the map if present.- Returns:
- the object previously stored in the Map or null if none present.
-