com.ibm.broker.replay.api
Class ReplaySession

java.lang.Object
  extended bycom.ibm.broker.replay.api.ReplaySession
All Implemented Interfaces:
java.lang.Runnable, javax.jms.Session
Direct Known Subclasses:
ReplayTopicSession

public class ReplaySession
extends java.lang.Object
implements javax.jms.Session

ReplaySession implements the Session interface, and as such all but one of the methods are the same and do not need documenting (see the javax.jms.MessageConsumer javadoc).


Field Summary
 
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE
 
Method Summary
 void close()
           
 void commit()
           
 javax.jms.QueueBrowser createBrowser(javax.jms.Queue q)
           
 javax.jms.QueueBrowser createBrowser(javax.jms.Queue q, java.lang.String s)
           
 javax.jms.BytesMessage createBytesMessage()
           
 javax.jms.MessageConsumer createConsumer(javax.jms.Destination d)
           
 javax.jms.MessageConsumer createConsumer(javax.jms.Destination d, java.lang.String s)
           
 javax.jms.MessageConsumer createConsumer(javax.jms.Destination d, java.lang.String s, boolean b)
           
 javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic t, java.lang.String id)
           
 javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic t, java.lang.String id, java.lang.String sel, boolean b)
           
 javax.jms.MapMessage createMapMessage()
           
 javax.jms.Message createMessage()
           
 javax.jms.ObjectMessage createObjectMessage()
           
 javax.jms.ObjectMessage createObjectMessage(java.io.Serializable o)
           
 javax.jms.MessageProducer createProducer(javax.jms.Destination d)
           
 javax.jms.Queue createQueue(java.lang.String q)
           
 javax.jms.MessageConsumer createReplayConsumer(javax.jms.Destination d, java.lang.String s, ReplaySignature r)
          Creates a new MessageConsumer (actually a ReplayMessageConsumer) which requests a new replay at construction time.
 javax.jms.StreamMessage createStreamMessage()
           
 javax.jms.TemporaryQueue createTemporaryQueue()
           
 javax.jms.TemporaryTopic createTemporaryTopic()
           
 javax.jms.TextMessage createTextMessage()
           
 javax.jms.TextMessage createTextMessage(java.lang.String s)
           
 javax.jms.Topic createTopic(java.lang.String s)
           
 int getAcknowledgeMode()
           
 javax.jms.MessageListener getMessageListener()
           
 boolean getTransacted()
           
 void recover()
           
 void rollback()
           
 void run()
           
 void setMessageListener(javax.jms.MessageListener m)
           
 void unsubscribe(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBytesMessage

public javax.jms.BytesMessage createBytesMessage()
                                          throws javax.jms.JMSException
Specified by:
createBytesMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createMapMessage

public javax.jms.MapMessage createMapMessage()
                                      throws javax.jms.JMSException
Specified by:
createMapMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createMessage

public javax.jms.Message createMessage()
                                throws javax.jms.JMSException
Specified by:
createMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createObjectMessage

public javax.jms.ObjectMessage createObjectMessage()
                                            throws javax.jms.JMSException
Specified by:
createObjectMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createObjectMessage

public javax.jms.ObjectMessage createObjectMessage(java.io.Serializable o)
                                            throws javax.jms.JMSException
Specified by:
createObjectMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createStreamMessage

public javax.jms.StreamMessage createStreamMessage()
                                            throws javax.jms.JMSException
Specified by:
createStreamMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createTextMessage

public javax.jms.TextMessage createTextMessage()
                                        throws javax.jms.JMSException
Specified by:
createTextMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

createTextMessage

public javax.jms.TextMessage createTextMessage(java.lang.String s)
                                        throws javax.jms.JMSException
Specified by:
createTextMessage in interface javax.jms.Session
Throws:
javax.jms.JMSException

getTransacted

public boolean getTransacted()
                      throws javax.jms.JMSException
Specified by:
getTransacted in interface javax.jms.Session
Throws:
javax.jms.JMSException

getAcknowledgeMode

public int getAcknowledgeMode()
                       throws javax.jms.JMSException
Throws:
javax.jms.JMSException

commit

public void commit()
            throws javax.jms.JMSException
Specified by:
commit in interface javax.jms.Session
Throws:
javax.jms.JMSException

rollback

public void rollback()
              throws javax.jms.JMSException
Specified by:
rollback in interface javax.jms.Session
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface javax.jms.Session
Throws:
javax.jms.JMSException

recover

public void recover()
             throws javax.jms.JMSException
Specified by:
recover in interface javax.jms.Session
Throws:
javax.jms.JMSException

getMessageListener

public javax.jms.MessageListener getMessageListener()
                                             throws javax.jms.JMSException
Specified by:
getMessageListener in interface javax.jms.Session
Throws:
javax.jms.JMSException

setMessageListener

public void setMessageListener(javax.jms.MessageListener m)
                        throws javax.jms.JMSException
Specified by:
setMessageListener in interface javax.jms.Session
Throws:
javax.jms.JMSException

run

public void run()
Specified by:
run in interface javax.jms.Session

createProducer

public javax.jms.MessageProducer createProducer(javax.jms.Destination d)
                                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createConsumer

public javax.jms.MessageConsumer createConsumer(javax.jms.Destination d)
                                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createConsumer

public javax.jms.MessageConsumer createConsumer(javax.jms.Destination d,
                                                java.lang.String s)
                                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createConsumer

public javax.jms.MessageConsumer createConsumer(javax.jms.Destination d,
                                                java.lang.String s,
                                                boolean b)
                                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createReplayConsumer

public javax.jms.MessageConsumer createReplayConsumer(javax.jms.Destination d,
                                                      java.lang.String s,
                                                      ReplaySignature r)
                                               throws javax.jms.JMSException
Creates a new MessageConsumer (actually a ReplayMessageConsumer) which requests a new replay at construction time.

Parameters:
d - a destination (actually a topic, possibly wildcarded) for the new replay request.
s - a String containing a new JMS selector (can be null).
r - a ReplaySignature containing the parameters for the new replay request.
Throws:
javax.jms.JMSException

createQueue

public javax.jms.Queue createQueue(java.lang.String q)
                            throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createTopic

public javax.jms.Topic createTopic(java.lang.String s)
                            throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createDurableSubscriber

public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic t,
                                                         java.lang.String id)
                                                  throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createDurableSubscriber

public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic t,
                                                         java.lang.String id,
                                                         java.lang.String sel,
                                                         boolean b)
                                                  throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createBrowser

public javax.jms.QueueBrowser createBrowser(javax.jms.Queue q)
                                     throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createBrowser

public javax.jms.QueueBrowser createBrowser(javax.jms.Queue q,
                                            java.lang.String s)
                                     throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createTemporaryQueue

public javax.jms.TemporaryQueue createTemporaryQueue()
                                              throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createTemporaryTopic

public javax.jms.TemporaryTopic createTemporaryTopic()
                                              throws javax.jms.JMSException
Throws:
javax.jms.JMSException

unsubscribe

public void unsubscribe(java.lang.String s)
                 throws javax.jms.JMSException
Throws:
javax.jms.JMSException