Class SchedulerQueue


  • public class SchedulerQueue
    extends Object
    The 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 Detail

      • SchedulerQueue

        public SchedulerQueue()
    • 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.