|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.messagemgr.MessageHandleFactory
This class defines a number of static methods that are responsible for creatimg message handles
| Constructor Summary | |
MessageHandleFactory()
|
|
| Method Summary | |
static MessageHandle |
createHandle(DurableConsumerEndpoint durable,
MessageImpl message)
Create a trasient message handle |
static MessageHandle |
createHandle(JmsDestination dest,
java.lang.String name,
MessageImpl message)
Create a transient message handle |
static MessageHandle |
createHandle(QueueDestinationCache queue,
MessageImpl message)
Create a transient handle for a message belonging to a queue. |
static MessageHandle |
createPersistentHandle(DurableConsumerEndpoint durable,
MessageImpl message)
Create a persistent handle for a message belonging to a particular durable consumer |
static MessageHandle |
createPersistentHandle(JmsDestination dest,
java.lang.String name,
MessageImpl message)
Create a persistent message handle from the destination and consumer name |
static MessageHandle |
createPersistentHandle(QueueDestinationCache queue,
MessageImpl message)
Create a persistent message handle belonging to a queue. |
static MessageHandle |
createPersistentHandle(TransientMessageHandle handle)
Create a PersistentMessageHandle from the specified
TransientHandle. |
static void |
destroyPersistentHandle(JmsDestination destination,
java.lang.String name,
MessageImpl message)
Destroy a persistent handle associated with the follwoing information |
static void |
destroyPersistentHandle(PersistentMessageHandle phandle)
Destroy the specified persistent handle. |
static MessageHandle |
getHandle(ConsumerEndpoint consumer,
MessageImpl message)
Retrieve a message handle for the specified ConsumerEndpoint and
message. |
static MessageHandle |
getHandle(JmsDestination dest,
java.lang.String name,
MessageImpl message)
Use the message, destination and optionally, the consumer name to retrieve a message handle |
static MessageHandle |
getHandle(MessageImpl message)
Retrieve a TransientMessageHandle given the specified message,
irrespective of whether it is a persistent or non-persistent message. |
static MessageHandle |
getHandle(QueueDestinationCache queue,
MessageImpl message)
Retrieve a MessageHandle from the specified QueueConsumerEndpoint
and the specified message. |
static void |
updatePersistentHandle(PersistentMessageHandle handle)
Update the state of the persistent handle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageHandleFactory()
| Method Detail |
public static MessageHandle getHandle(MessageImpl message)
throws FailedToCreateHandleException
TransientMessageHandle given the specified message,
irrespective of whether it is a persistent or non-persistent message.
It will throw FailedToCreateHandleException if it cannot create one
message - - the messageFailedToCreateHandleException -
public static MessageHandle getHandle(QueueDestinationCache queue,
MessageImpl message)
throws FailedToCreateHandleException
MessageHandle from the specified QueueConsumerEndpoint
and the specified message. It will create a PersistentMessageHandle if
the message is persistent or a TransientMessageHandle otherwise.
It will throw FailedToCreateHandleException if it cannot create one
queue - - queue destination cachemessage - - the messageFailedToCreateHandleException -
public static MessageHandle getHandle(JmsDestination dest,
java.lang.String name,
MessageImpl message)
throws FailedToCreateHandleException
It will throw FailedToCreateHandleException if it cannot create a handle based on the specified information.
destination - - the message destinationname - - the consumer name, can be null for JmsQueue typemessage - - the messageFailedToCreateHandleException -
public static MessageHandle getHandle(ConsumerEndpoint consumer,
MessageImpl message)
throws FailedToCreateHandleException
ConsumerEndpoint and
message.consumer - = consumer endpointmessage - - the messageFailedToCreateHandleException -
public static MessageHandle createHandle(QueueDestinationCache queue,
MessageImpl message)
throws FailedToCreateHandleException
It will throw FailedToCreateHandleException if it cannot create one
queue - - queue destination cachemessage - - the messageFailedToCreateHandleException -
public static MessageHandle createHandle(DurableConsumerEndpoint durable,
MessageImpl message)
throws FailedToCreateHandleException
durable - = durable consumer endpointmessage - - the messageFailedToCreateHandleException -
public static MessageHandle createHandle(JmsDestination dest,
java.lang.String name,
MessageImpl message)
throws FailedToCreateHandleException
It will throw FailedToCreateHandleException if it cannot create a handle based on the specified information.
destination - - the message destinationname - - the consumer name, can be null for JmsQueue typemessage - - the messageFailedToCreateHandleException -
public static MessageHandle createPersistentHandle(TransientMessageHandle handle)
throws FailedToCreateHandleException
PersistentMessageHandle from the specified
TransientHandle. It does not fill in all the fields of a
persistent message handle.
It will throw FailedToCreateHandleException if it cannot create one
handle - - the transient message handleFailedToCreateHandleException -
public static MessageHandle createPersistentHandle(QueueDestinationCache queue,
MessageImpl message)
throws FailedToCreateHandleException
It will throw FailedToCreateHandleException if it cannot create one
queue - - queue destination cachemessage - - the messageFailedToCreateHandleException -
public static MessageHandle createPersistentHandle(DurableConsumerEndpoint durable,
MessageImpl message)
throws FailedToCreateHandleException
connection - - the connection to use.durable - = durable consumer endpointmessage - - the messageFailedToCreateHandleException -
public static MessageHandle createPersistentHandle(JmsDestination dest,
java.lang.String name,
MessageImpl message)
throws FailedToCreateHandleException
It will throw FailedToCreateHandleException if it cannot create a handle based on the specified information.
connection - - the connection to usedestination - - the message destinationname - - the consumer name, can be null for JmsQueue typemessage - - the messageFailedToCreateHandleException -
public static void destroyPersistentHandle(PersistentMessageHandle phandle)
throws PersistenceException
phandle - - the persistent handle to destroyPersistenceExcetpion - - if there is a persistence-related problem
public static void destroyPersistentHandle(JmsDestination destination,
java.lang.String name,
MessageImpl message)
throws PersistenceException
destination - - the destination assoicated with the messagename - - the name of the consumermessage - - the messagePersistentException - - if there is a persistence related error
public static void updatePersistentHandle(PersistentMessageHandle handle)
throws PersistenceException
connection - - the connection to usehandle - - the handle to updatePersistentException - - if there is a persistence related error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||