public class SchedulerQueue extends Object
SchedulerQueue
class 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 and Description |
---|
SchedulerQueue() |
Modifier and Type | Method and Description |
---|---|
static Queue |
create(int serverId,
String name)
Administration method creating and deploying a scheduled queue on a given server.
|
static Queue |
create(String name)
Administration method creating and deploying a scheduled queue on the local server.
|
public static Queue create(String name) throws ConnectException, AdminException
The request fails if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
name
- The name of the created queue.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String)
public static Queue create(int serverId, String name) throws ConnectException, AdminException
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.
serverId
- The identifier of the server where deploying the queue.name
- The name of the created queue.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.Copyright © 2016 ScalAgent D.T.. All Rights Reserved.