public interface MessageCursorRuntimeMBean extends CursorRuntimeMBean
This interface specifies methods for cursor result sets comprised of messages. Given a cursor handle and an identifier, they return a complete message in CompositeData representation.
CompositeData| Modifier and Type | Method and Description |
|---|---|
CompositeData |
getMessage(String cursorHandle,
Long messageHandle)
Returns the message associated with the specified cursor
handle.
|
CompositeData |
getMessage(String cursorHandle,
String messageID)
Given a JMS message ID this method returns the corresponding
message from the queue.
|
closeCursor, getCursorEndPosition, getCursorSize, getCursorStartPosition, getItems, getNext, getPreviousaddPropertyChangeListener, removePropertyChangeListenergetMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParentgetAttribute, getAttributes, invoke, setAttribute, setAttributespostDeregister, postRegister, preDeregister, preRegisteraddNotificationListener, getNotificationInfo, removeNotificationListenerCompositeData getMessage(String cursorHandle, String messageID) throws ManagementException
Given a JMS message ID this method returns the corresponding message from the queue. If no message with the specified message ID exists on the destination, a null value is returned.
cursorHandle - The handle of the cursor.messageID - The JMS message ID of the requested message.ManagementException - Thrown when an error occurs while performing the query.CompositeDataCompositeData getMessage(String cursorHandle, Long messageHandle) throws ManagementException
Returns the message associated with the specified cursor handle.
cursorHandle - The handle of the cursor.messageHandle - The handle of the message within the cursor.ManagementException - Thrown when an error occurs while performing the operation.CompositeData