Class SchedulerQueue
- java.lang.Object
-
- org.objectweb.joram.client.jms.admin.SchedulerQueue
-
public class SchedulerQueue extends Object
TheSchedulerQueueclass allows administrators to create scheduled queues.A scheduled queue is a standard JMS queue extended with a timer behavior. When a scheduler queue receives a message with a property called 'scheduleDate' (typed as a long) then the message is not available for delivery before the date specified by the property.
-
-
Constructor Summary
Constructors Constructor Description SchedulerQueue()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Queuecreate(int serverId, String name)Administration method creating and deploying a scheduled queue on a given server.static Queuecreate(String name)Administration method creating and deploying a scheduled queue on the local server.
-
-
-
Method Detail
-
create
public static Queue create(String name) throws ConnectException, AdminException
Administration method creating and deploying a scheduled queue on the local server.The request fails if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
- Parameters:
name- The name of the created queue.- Returns:
- the created destination.
- Throws:
ConnectException- If the administration connection is closed or broken.AdminException- If the request fails.- See Also:
create(int, String)
-
create
public static Queue create(int serverId, String name) throws ConnectException, AdminException
Administration method creating and deploying a scheduled queue on a given server.The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
- Parameters:
serverId- The identifier of the server where deploying the queue.name- The name of the created queue.- Returns:
- the created destination.
- Throws:
ConnectException- If the administration connection is closed or broken.AdminException- If the request fails.
-
-