org.jboss.messaging.core.server.impl
Class ServerSessionImpl
java.lang.Object
org.jboss.messaging.core.server.impl.ServerSessionImpl
- All Implemented Interfaces:
- CloseListener, FailureListener, ServerSession
public class ServerSessionImpl
- extends java.lang.Object
- implements ServerSession, FailureListener, CloseListener
Constructor Summary |
ServerSessionImpl(java.lang.String name,
long oppositeChannelID,
java.lang.String username,
java.lang.String password,
int minLargeMessageSize,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean updateDeliveries,
boolean xa,
RemotingConnection remotingConnection,
StorageManager storageManager,
PostOffice postOffice,
ResourceManager resourceManager,
SecurityStore securityStore,
java.util.concurrent.Executor executor,
Channel channel,
ManagementService managementService,
QueueFactory queueFactory,
MessagingServer server,
SimpleString managementAddress,
Channel replicatingChannel,
boolean backup)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
postOffice
public final PostOffice postOffice
ServerSessionImpl
public ServerSessionImpl(java.lang.String name,
long oppositeChannelID,
java.lang.String username,
java.lang.String password,
int minLargeMessageSize,
boolean autoCommitSends,
boolean autoCommitAcks,
boolean preAcknowledge,
boolean updateDeliveries,
boolean xa,
RemotingConnection remotingConnection,
StorageManager storageManager,
PostOffice postOffice,
ResourceManager resourceManager,
SecurityStore securityStore,
java.util.concurrent.Executor executor,
Channel channel,
ManagementService managementService,
QueueFactory queueFactory,
MessagingServer server,
SimpleString managementAddress,
Channel replicatingChannel,
boolean backup)
throws java.lang.Exception
- Throws:
java.lang.Exception
getHandler
public ServerSessionPacketHandler getHandler()
- Specified by:
getHandler
in interface ServerSession
setHandler
public void setHandler(ServerSessionPacketHandler handler)
- Specified by:
setHandler
in interface ServerSession
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interface ServerSession
getPassword
public java.lang.String getPassword()
- Specified by:
getPassword
in interface ServerSession
getMinLargeMessageSize
public int getMinLargeMessageSize()
- Specified by:
getMinLargeMessageSize
in interface ServerSession
getID
public long getID()
- Specified by:
getID
in interface ServerSession
getName
public java.lang.String getName()
- Specified by:
getName
in interface ServerSession
getConnectionID
public java.lang.Object getConnectionID()
- Specified by:
getConnectionID
in interface ServerSession
removeConsumer
public void removeConsumer(ServerConsumer consumer)
throws java.lang.Exception
- Specified by:
removeConsumer
in interface ServerSession
- Throws:
java.lang.Exception
close
public void close()
throws java.lang.Exception
- Specified by:
close
in interface ServerSession
- Throws:
java.lang.Exception
promptDelivery
public void promptDelivery(Queue queue)
- Specified by:
promptDelivery
in interface ServerSession
handleCreateConsumer
public void handleCreateConsumer(SessionCreateConsumerMessage packet)
- Specified by:
handleCreateConsumer
in interface ServerSession
handleCreateQueue
public void handleCreateQueue(CreateQueueMessage packet)
- Specified by:
handleCreateQueue
in interface ServerSession
handleDeleteQueue
public void handleDeleteQueue(SessionDeleteQueueMessage packet)
- Specified by:
handleDeleteQueue
in interface ServerSession
handleExecuteQueueQuery
public void handleExecuteQueueQuery(SessionQueueQueryMessage packet)
- Specified by:
handleExecuteQueueQuery
in interface ServerSession
handleExecuteBindingQuery
public void handleExecuteBindingQuery(SessionBindingQueryMessage packet)
- Specified by:
handleExecuteBindingQuery
in interface ServerSession
handleAcknowledge
public void handleAcknowledge(SessionAcknowledgeMessage packet)
- Specified by:
handleAcknowledge
in interface ServerSession
handleExpired
public void handleExpired(SessionExpiredMessage packet)
- Specified by:
handleExpired
in interface ServerSession
handleCommit
public void handleCommit(Packet packet)
- Specified by:
handleCommit
in interface ServerSession
handleRollback
public void handleRollback(RollbackMessage packet)
- Specified by:
handleRollback
in interface ServerSession
handleXACommit
public void handleXACommit(SessionXACommitMessage packet)
- Specified by:
handleXACommit
in interface ServerSession
handleXAEnd
public void handleXAEnd(SessionXAEndMessage packet)
- Specified by:
handleXAEnd
in interface ServerSession
handleXAForget
public void handleXAForget(SessionXAForgetMessage packet)
- Specified by:
handleXAForget
in interface ServerSession
handleXAJoin
public void handleXAJoin(SessionXAJoinMessage packet)
- Specified by:
handleXAJoin
in interface ServerSession
handleXAResume
public void handleXAResume(SessionXAResumeMessage packet)
- Specified by:
handleXAResume
in interface ServerSession
handleXARollback
public void handleXARollback(SessionXARollbackMessage packet)
- Specified by:
handleXARollback
in interface ServerSession
handleXAStart
public void handleXAStart(SessionXAStartMessage packet)
- Specified by:
handleXAStart
in interface ServerSession
handleXASuspend
public void handleXASuspend(Packet packet)
- Specified by:
handleXASuspend
in interface ServerSession
handleXAPrepare
public void handleXAPrepare(SessionXAPrepareMessage packet)
- Specified by:
handleXAPrepare
in interface ServerSession
handleGetInDoubtXids
public void handleGetInDoubtXids(Packet packet)
- Specified by:
handleGetInDoubtXids
in interface ServerSession
handleGetXATimeout
public void handleGetXATimeout(Packet packet)
- Specified by:
handleGetXATimeout
in interface ServerSession
handleSetXATimeout
public void handleSetXATimeout(SessionXASetTimeoutMessage packet)
- Specified by:
handleSetXATimeout
in interface ServerSession
handleStart
public void handleStart(Packet packet)
- Specified by:
handleStart
in interface ServerSession
handleStop
public void handleStop(Packet packet)
- Specified by:
handleStop
in interface ServerSession
handleFailedOver
public void handleFailedOver(Packet packet)
- Specified by:
handleFailedOver
in interface ServerSession
handleClose
public void handleClose(Packet packet)
- Specified by:
handleClose
in interface ServerSession
handleCloseConsumer
public void handleCloseConsumer(SessionConsumerCloseMessage packet)
- Specified by:
handleCloseConsumer
in interface ServerSession
handleReceiveConsumerCredits
public void handleReceiveConsumerCredits(SessionConsumerFlowCreditMessage packet)
- Specified by:
handleReceiveConsumerCredits
in interface ServerSession
handleSendLargeMessage
public void handleSendLargeMessage(SessionSendLargeMessage packet)
- Specified by:
handleSendLargeMessage
in interface ServerSession
handleSend
public void handleSend(SessionSendMessage packet)
- Specified by:
handleSend
in interface ServerSession
handleSendContinuations
public void handleSendContinuations(SessionSendContinuationMessage packet)
- Specified by:
handleSendContinuations
in interface ServerSession
handleReplicatedDelivery
public void handleReplicatedDelivery(SessionReplicateDeliveryMessage packet)
- Specified by:
handleReplicatedDelivery
in interface ServerSession
handlePacketsConfirmed
public void handlePacketsConfirmed(PacketsConfirmedMessage packet)
- Specified by:
handlePacketsConfirmed
in interface ServerSession
transferConnection
public int transferConnection(RemotingConnection newConnection,
int lastReceivedCommandID)
- Specified by:
transferConnection
in interface ServerSession
getChannel
public Channel getChannel()
- Specified by:
getChannel
in interface ServerSession
connectionFailed
public boolean connectionFailed(MessagingException me)
- Specified by:
connectionFailed
in interface FailureListener
- Returns:
false
to stop calling subsequent failure listeners
connectionClosed
public void connectionClosed()
- Specified by:
connectionClosed
in interface CloseListener
getTransaction
public Transaction getTransaction()
Copyright © 2006 JBoss Inc. All Rights Reserved.