org.jboss.jms.client.state
Class SessionState

java.lang.Object
  extended byorg.jboss.jms.client.state.HierarchicalStateSupport
      extended byorg.jboss.jms.client.state.SessionState
All Implemented Interfaces:
HierarchicalState

public class SessionState
extends HierarchicalStateSupport

State corresponding to a session. This state is acessible inside aspects/interceptors.

Version:
$Revision: 2686 $ $Id: SessionState.java 2686 2007-05-15 08:47:20Z timfox $
Author:
Tim Fox, Clebert Suconic, Ovidiu Feodorov

Field Summary
protected static Logger log
           
 
Fields inherited from class org.jboss.jms.client.state.HierarchicalStateSupport
children
 
Constructor Summary
SessionState(ConnectionState parent, ClientSessionDelegate delegate, boolean transacted, int ackMode, boolean xa, int dupsOKBatchSize)
           
 
Method Summary
 void addCallbackHandler(MessageCallbackHandler handler)
           
 int getAcknowledgeMode()
           
 java.util.LinkedList getASFMessages()
           
 DeliveryInfo getAutoAckInfo()
           
 MessageCallbackHandler getCallbackHandler(int consumerID)
           
 java.util.List getClientAckList()
           
 java.lang.Object getCurrentTxId()
           
 DelegateSupport getDelegate()
           
 MessageListener getDistinguishedListener()
           
 int getDupsOKBatchSize()
           
 QueuedExecutor getExecutor()
           
 HierarchicalState getParent()
           
 int getSessionID()
           
 Version getVersionToUse()
           
 MessagingXAResource getXAResource()
           
 boolean isRecoverCalled()
           
 boolean isTransacted()
           
 boolean isXA()
           
 void removeCallbackHandler(MessageCallbackHandler handler)
           
 void setAutoAckInfo(DeliveryInfo info)
           
 void setClientAckList(java.util.List list)
           
 void setCurrentTxId(java.lang.Object id)
           
 void setDelegate(DelegateSupport delegate)
           
 void setDistinguishedListener(MessageListener listener)
           
 void setParent(HierarchicalState parent)
           
 void setRecoverCalled(boolean recoverCalled)
           
 void synchronizeWith(HierarchicalState ns)
          Update my own state based on the new state.
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.jms.client.state.HierarchicalStateSupport
getChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static Logger log
Constructor Detail

SessionState

public SessionState(ConnectionState parent,
                    ClientSessionDelegate delegate,
                    boolean transacted,
                    int ackMode,
                    boolean xa,
                    int dupsOKBatchSize)
Method Detail

getDelegate

public DelegateSupport getDelegate()

setDelegate

public void setDelegate(DelegateSupport delegate)

getParent

public HierarchicalState getParent()

setParent

public void setParent(HierarchicalState parent)

getVersionToUse

public Version getVersionToUse()

getDupsOKBatchSize

public int getDupsOKBatchSize()

getDistinguishedListener

public MessageListener getDistinguishedListener()

setDistinguishedListener

public void setDistinguishedListener(MessageListener listener)

getASFMessages

public java.util.LinkedList getASFMessages()

synchronizeWith

public void synchronizeWith(HierarchicalState ns)
                     throws java.lang.Exception
Description copied from interface: HierarchicalState
Update my own state based on the new state.

Throws:
java.lang.Exception

getClientAckList

public java.util.List getClientAckList()
Returns:
List

setClientAckList

public void setClientAckList(java.util.List list)

getAutoAckInfo

public DeliveryInfo getAutoAckInfo()

setAutoAckInfo

public void setAutoAckInfo(DeliveryInfo info)

getAcknowledgeMode

public int getAcknowledgeMode()

isTransacted

public boolean isTransacted()

isXA

public boolean isXA()

getXAResource

public MessagingXAResource getXAResource()

getExecutor

public QueuedExecutor getExecutor()

getCurrentTxId

public java.lang.Object getCurrentTxId()

isRecoverCalled

public boolean isRecoverCalled()

setCurrentTxId

public void setCurrentTxId(java.lang.Object id)

setRecoverCalled

public void setRecoverCalled(boolean recoverCalled)

getCallbackHandler

public MessageCallbackHandler getCallbackHandler(int consumerID)

addCallbackHandler

public void addCallbackHandler(MessageCallbackHandler handler)

removeCallbackHandler

public void removeCallbackHandler(MessageCallbackHandler handler)

getSessionID

public int getSessionID()

toString

public java.lang.String toString()


Copyright © 2006 JBoss Inc. All Rights Reserved.