Class SessionHandler
java.lang.Object
com.swiftmq.impl.amqp.amqp.v01_00_00.SessionHandler
- All Implemented Interfaces:
AMQPSessionVisitor
-
Field Summary
Modifier and TypeFieldDescriptionint
int
int
int
-
Constructor Summary
ConstructorDescriptionSessionHandler
(SwiftletContext ctx, VersionedConnection versionedConnection, AMQPHandler amqpHandler, BeginFrame beginFrame) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyDispositionFrame
(DispositionFrame frame) void
close()
void
collect
(long lastCollect) void
dispatch
(POObject po) int
int
int
int
int
void
incMsgsReceived
(int n) void
incMsgsSent
(int n) void
void
setChannel
(int channel) void
settleOutbound
(long deliveryId, DeliveryStateIF deliveryState) void
setUsage
(Entity usage) void
void
toString()
void
visit
(POCloseSession po) void
visit
(POSendBegin po) void
void
visit
(POSendFlow po) void
visit
(POSendMessages po) void
void
-
Field Details
-
msgsReceived
public volatile int msgsReceived -
msgsSent
public volatile int msgsSent -
totalMsgsReceived
public volatile int totalMsgsReceived -
totalMsgsSent
public volatile int totalMsgsSent
-
-
Constructor Details
-
SessionHandler
public SessionHandler(SwiftletContext ctx, VersionedConnection versionedConnection, AMQPHandler amqpHandler, BeginFrame beginFrame)
-
-
Method Details
-
getMsgsReceived
public int getMsgsReceived() -
getMsgsSent
public int getMsgsSent() -
getTotalMsgsReceived
public int getTotalMsgsReceived() -
getTotalMsgsSent
public int getTotalMsgsSent() -
incMsgsSent
public void incMsgsSent(int n) -
incMsgsReceived
public void incMsgsReceived(int n) -
setUsage
public void setUsage(Entity usage) -
settleOutbound
public void settleOutbound(long deliveryId, DeliveryStateIF deliveryState) throws EndWithErrorException - Throws:
EndWithErrorException
-
applyDispositionFrame
- Throws:
EndWithErrorException
-
sendOutboundDeliveries
- Throws:
EndWithErrorException
-
getVersionedConnection
-
getChannel
public int getChannel() -
setChannel
public void setChannel(int channel) -
getTransactionRegistry
-
startSession
public void startSession() -
stopSession
public void stopSession() -
dispatch
public void dispatch(POObject po) -
collect
public void collect(long lastCollect) -
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
visit
- Specified by:
visit
in interfaceAMQPSessionVisitor
-
close
public void close() -
toString
-