Class WmTemporaryQueueImpl

    • Constructor Detail

      • WmTemporaryQueueImpl

        public WmTemporaryQueueImpl()
      • WmTemporaryQueueImpl

        public WmTemporaryQueueImpl​(java.lang.String name)
                             throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • delete

        public void delete()
                    throws javax.jms.JMSException
        Deletes this temporary queue. If there are existing receivers still using it, a JMSException will be thrown.
        Specified by:
        delete in interface javax.jms.TemporaryQueue
        Specified by:
        delete in interface WmTemporaryDestination
        Throws:
        javax.jms.JMSException - if the JMS provider fails to delete the temporary queue due to some internal error.
      • setEventType

        public void setEventType​(java.lang.String eventType)
                          throws javax.jms.JMSException
        Set the event type to be used by this temporary destination.
        Specified by:
        setEventType in interface WmDestination
        Specified by:
        setEventType in interface WmTemporaryDestination
        Overrides:
        setEventType in class WmDestinationImpl
        Parameters:
        eventType - the event type to use for this temporary destination
        Throws:
        javax.jms.JMSException - if the JMS provider fails to set the event type for this destination due to some internal error.
        See Also:
        WmDestination.getEventType()
      • setSharedState

        public void setSharedState​(boolean sharedState)
                            throws javax.jms.JMSException
        Set the shared state attribute of this temporary destination.
        Specified by:
        setSharedState in interface WmDestination
        Overrides:
        setSharedState in class WmDestinationImpl
        Parameters:
        sharedState - the shared state value for this temporary destination
        Throws:
        javax.jms.JMSException - if the JMS provider fails to set the shared state value for this destination due to some internal error.
        See Also:
        WmDestination.getSharedState()
      • isDeleted

        public boolean isDeleted()
        Get whether this temporary destination has been deleted.
        Specified by:
        isDeleted in interface WmTemporaryDestination
        Returns:
        true if this temporary destination has been deleted.
      • create

        public void create()
                    throws javax.jms.JMSException
        Creates the queue on the JMS Broker.
        Throws:
        javax.jms.JMSException - if the queue could not be created
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface javax.jms.Queue
        Overrides:
        toString in class WmDestinationImpl