Interface JmsMapMessageFacade
-
- All Superinterfaces:
JmsMessageFacade,TraceableMessage
- All Known Implementing Classes:
AmqpJmsMapMessageFacade
public interface JmsMapMessageFacade extends JmsMessageFacade
Interface for a message Facade that wraps a MapMessage style provider message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmsMapMessageFacadecopy()Create a new instance and perform a deep copy of this object's contents.java.lang.Objectget(java.lang.String key)Gets the value stored in the Map at the specified key.java.util.Enumeration<java.lang.String>getMapNames()Returns an Enumeration of all the names in the MapMessage object.booleanitemExists(java.lang.String key)Determines whether an item exists in this Map based message.voidput(java.lang.String key, java.lang.Object value)Sets an object value with the specified name into the Map.java.lang.Objectremove(java.lang.String key)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, setUserIdBytes
-
Methods inherited from interface org.apache.qpid.jms.tracing.TraceableMessage
filterTracingAnnotations, getTracingAnnotation, getTracingContext, removeTracingAnnotation, removeTracingContext, setTracingAnnotation, setTracingContext
-
-
-
-
Method Detail
-
copy
JmsMapMessageFacade copy() throws jakarta.jms.JMSException
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
java.util.Enumeration<java.lang.String> getMapNames()
Returns an Enumeration of all the names in the MapMessage object.- Returns:
- an enumeration of all the names in this MapMessage
-
itemExists
boolean itemExists(java.lang.String key)
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
java.lang.Object get(java.lang.String key)
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
void put(java.lang.String key, java.lang.Object value)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
java.lang.Object remove(java.lang.String key)
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.
-
-