Class BrokerLockedClientQueueBrowser

    • Method Detail

      • modifyEvents

        public void modifyEvents​(long[] seqns,
                                 BrokerEvent[] events)
                          throws BrokerException
        Modify events in the queue. The events are identified by the specified receipt sequence numbers for an in-place update in the queue.
        Specified by:
        modifyEvents in interface BrokerLockedQueueBrowser
        Parameters:
        seqns - An array of sequence numbers that identify the events to be modified in the queue.
        events - An array of BrokerEvent that will be updated in place of the events in the queue.
        Throws:
        BrokerInvalidClientException - If the client has been destroyed or disconnected.
        BrokerQueueBrowserException - If the event cannot be modified
        BrokerInvalidClientException - If the client has been destroyed or disconnected.
        BrokerQueueBrowserException - If the event cannot be modified
        BrokerException
      • deleteEvents

        public int deleteEvents​(long[] seqns)
                         throws BrokerException
        Delete events in the queue. The events are identified by their receipt sequence numbers.
        Specified by:
        deleteEvents in interface BrokerLockedQueueBrowser
        Parameters:
        seqns - An array of sequence numbers that identify the events in the queue.
        Returns:
        The number of events deleted from the queue.
        Throws:
        BrokerInvalidClientException - If the client has been destroyed or disconnected.
        BrokerQueueBrowserException - If the event cannot be deleted
        BrokerInvalidClientException - If the client has been destroyed or disconnected.
        BrokerQueueBrowserException - If the event cannot be deleted
        BrokerException