Class TempQueue


  • public class TempQueue
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TempQueue​(StreamContext ctx, java.lang.String name)
      Internal use.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()
      Deletes the temporary queue and removes it from JNDI, if registered
      javax.jms.Destination destination()
      Returns the javax.jms.Destination object to set as a replyTo
      java.lang.String name()
      Returns the name under which this temp queue is stored in the Stream
      java.lang.String queueName()
      Returns the queue name of the temporary queue at the Queue Manager Swiftlet
      TempQueue registerJNDI()
      Registers a TemporaryQueue under TempQueue.name() in JNDI so that JMS clients can look it up and can send Messages to it.
      TempQueue registerJNDI​(java.lang.String name)
      Registers a TemporaryQueue under the given name in JNDI so that JMS clients can look it up and can send Messages to it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TempQueue

        public TempQueue​(StreamContext ctx,
                         java.lang.String name)
                  throws java.lang.Exception
        Internal use.
        Throws:
        java.lang.Exception
    • Method Detail

      • name

        public java.lang.String name()
        Returns the name under which this temp queue is stored in the Stream
        Returns:
        name
      • queueName

        public java.lang.String queueName()
        Returns the queue name of the temporary queue at the Queue Manager Swiftlet
        Returns:
        queue name
      • destination

        public javax.jms.Destination destination()
        Returns the javax.jms.Destination object to set as a replyTo
        Returns:
        Destination
      • registerJNDI

        public TempQueue registerJNDI​(java.lang.String name)
        Registers a TemporaryQueue under the given name in JNDI so that JMS clients can look it up and can send Messages to it.
        Parameters:
        name - name under which it should be registered
        Returns:
        this
      • registerJNDI

        public TempQueue registerJNDI()
        Registers a TemporaryQueue under TempQueue.name() in JNDI so that JMS clients can look it up and can send Messages to it.
        Returns:
        this
      • delete

        public void delete()
        Deletes the temporary queue and removes it from JNDI, if registered
        Throws:
        java.lang.Exception