Package com.swiftmq.impl.streams.comp.io
Class TempQueue
- java.lang.Object
-
- com.swiftmq.impl.streams.comp.io.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 registeredjavax.jms.Destination
destination()
Returns the javax.jms.Destination object to set as a replyTojava.lang.String
name()
Returns the name under which this temp queue is stored in the Streamjava.lang.String
queueName()
Returns the queue name of the temporary queue at the Queue Manager SwiftletTempQueue
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.
-
-
-
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
-
-