Class SessionHandler
java.lang.Object
com.swiftmq.impl.amqp.amqp.v01_00_00.SessionHandler
- All Implemented Interfaces:
AMQPSessionVisitor, com.swiftmq.tools.pipeline.POVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintintint -
Constructor Summary
ConstructorsConstructorDescriptionSessionHandler(SwiftletContext ctx, VersionedConnection versionedConnection, AMQPHandler amqpHandler, com.swiftmq.amqp.v100.generated.transport.performatives.BeginFrame beginFrame) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyDispositionFrame(com.swiftmq.amqp.v100.generated.transport.performatives.DispositionFrame frame) voidclose()voidcollect(long lastCollect) voiddispatch(com.swiftmq.tools.pipeline.POObject po) intintintintintvoidincMsgsReceived(int n) voidincMsgsSent(int n) voidvoidsetChannel(int channel) voidsettleOutbound(long deliveryId, com.swiftmq.amqp.v100.generated.messaging.delivery_state.DeliveryStateIF deliveryState) voidsetUsage(com.swiftmq.mgmt.Entity usage) voidvoidtoString()voidvisit(POCloseSession po) voidvisit(POSendBegin po) voidvoidvisit(POSendFlow po) voidvisit(POSendMessages po) voidvoid
-
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, com.swiftmq.amqp.v100.generated.transport.performatives.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(com.swiftmq.mgmt.Entity usage) -
settleOutbound
public void settleOutbound(long deliveryId, com.swiftmq.amqp.v100.generated.messaging.delivery_state.DeliveryStateIF deliveryState) throws EndWithErrorException - Throws:
EndWithErrorException
-
applyDispositionFrame
public void applyDispositionFrame(com.swiftmq.amqp.v100.generated.transport.performatives.DispositionFrame frame) throws EndWithErrorException - 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(com.swiftmq.tools.pipeline.POObject po) -
collect
public void collect(long lastCollect) -
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
visit
- Specified by:
visitin interfaceAMQPSessionVisitor
-
close
public void close() -
toString
-