org.objectweb.joram.client.jms
Class TemporaryQueue

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.Destination
          extended byorg.objectweb.joram.client.jms.Queue
              extended byorg.objectweb.joram.client.jms.TemporaryQueue
All Implemented Interfaces:
javax.jms.Destination, javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable, SoapObjectItf, javax.jms.TemporaryQueue

public class TemporaryQueue
extends Queue
implements javax.jms.TemporaryQueue

Implements the javax.jms.TemporaryQueue interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.Destination
adminName, agentId
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
id, instancesTable
 
Constructor Summary
TemporaryQueue()
          Constructs an empty temporary queue.
TemporaryQueue(java.lang.String agentId, Connection cnx)
          Constructs a temporary queue.
 
Method Summary
 java.lang.Object decode(java.util.Hashtable h)
          Decodes a TemporaryQueue which traveled through the SOAP protocol.
 void delete()
          API method.
 Connection getCnx()
          Returns the connection this temporary queue belongs to, null if not known.
 java.lang.String toString()
          Returns a String image of the queue.
 
Methods inherited from class org.objectweb.joram.client.jms.Queue
create, create, create, create, create, create, create, getPendingMessages, getPendingRequests, getQueueName, getThreshold, setThreshold
 
Methods inherited from class org.objectweb.joram.client.jms.Destination
code, doCreate, equals, getAdminName, getDMQ, getName, getReaders, getReference, getWriters, isFreelyReadable, isFreelyWriteable, isQueue, setDMQ, setFreeReading, setFreeWriting, setReader, setWriter, unsetFreeReading, unsetFreeWriting, unsetReader, unsetWriter
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
getQueueName
 

Constructor Detail

TemporaryQueue

public TemporaryQueue(java.lang.String agentId,
                      Connection cnx)
Constructs a temporary queue.

Parameters:
agentId - Identifier of the queue agent.
cnx - The connection the queue belongs to, null if not known.

TemporaryQueue

public TemporaryQueue()
Constructs an empty temporary queue.

Method Detail

toString

public java.lang.String toString()
Returns a String image of the queue.

Specified by:
toString in interface javax.jms.Queue
Overrides:
toString in class Queue

delete

public void delete()
            throws javax.jms.JMSException
API method.

Specified by:
delete in interface javax.jms.TemporaryQueue
Overrides:
delete in class Destination
Throws:
java.lang.IllegalStateException - If the connection is closed or broken.
javax.jms.JMSException - If the request fails for any other reason.

getCnx

public Connection getCnx()
Returns the connection this temporary queue belongs to, null if not known.


decode

public java.lang.Object decode(java.util.Hashtable h)
Decodes a TemporaryQueue which traveled through the SOAP protocol.

Specified by:
decode in interface SoapObjectItf
Overrides:
decode in class Queue


Copyright ? 2004 Scalagent - All rights reserved