Class TargetLink
java.lang.Object
com.swiftmq.impl.amqp.amqp.v01_00_00.ServerLink
com.swiftmq.impl.amqp.amqp.v01_00_00.TargetLink
- All Implemented Interfaces:
QueueSenderProvider
,ResourceProvider
,DestinationFactory
-
Constructor Summary
ConstructorDescriptionTargetLink
(SwiftletContext ctx, SessionHandler mySessionHandler, String name, int rcvSettleMode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addTransferFrame
(TransferFrame frame) void
close()
void
Destination
create
(AddressIF addressIF) void
void
long
long
long
DeliveryNumber
DeliveryStateIF
long
AMQPArray
QueueSender
int
void
boolean
void
setCoordinator
(boolean coordinator) void
setDeliveryCount
(long deliveryCount) void
setFlowcontrolDelay
(long flowcontrolDelay) void
setFlowcontrolTimer
(FlowcontrolTimer flowcontrolTimer) void
setLocalAddress
(AddressIF localAddress) protected void
setRemoteAddress
(AddressIF remoteAddress) void
setRemoteUnsettled
(Map remoteUnsettled) void
settle
(long deliveryId, DeliveryStateIF deliveryState) void
setUsage
(Entity usage) toString()
void
void
visit
(AddressString addressString) Methods inherited from class com.swiftmq.impl.amqp.amqp.v01_00_00.ServerLink
getDesiredCapabilities, getHandle, getLocalAddress, getLocalDestination, getMySessionHandler, getName, getOfferedCapabilities, getRemoteAddress, getRemoteHandle, getWaitingPO, isClosed, isDynamic, setDesiredCapabilities, setDynamic, setHandle, setOfferedCapabilities, setRemoteHandle, setWaitingPO
-
Constructor Details
-
TargetLink
public TargetLink(SwiftletContext ctx, SessionHandler mySessionHandler, String name, int rcvSettleMode)
-
-
Method Details
-
setUsage
public void setUsage(Entity usage) - Specified by:
setUsage
in classServerLink
-
fillUsage
public void fillUsage()- Specified by:
fillUsage
in classServerLink
-
setLocalAddress
public void setLocalAddress(AddressIF localAddress) - Overrides:
setLocalAddress
in classServerLink
-
setRemoteAddress
protected void setRemoteAddress(AddressIF remoteAddress) - Overrides:
setRemoteAddress
in classServerLink
-
getLinkCredit
public long getLinkCredit() -
setFlowcontrolDelay
public void setFlowcontrolDelay(long flowcontrolDelay) -
getFlowcontrolDelay
public long getFlowcontrolDelay() -
getFlowcontrolTimer
-
setFlowcontrolTimer
-
setDeliveryCount
public void setDeliveryCount(long deliveryCount) -
getDeliveryCount
public long getDeliveryCount() -
getRcvSettleMode
public int getRcvSettleMode() -
isCoordinator
public boolean isCoordinator() -
setCoordinator
public void setCoordinator(boolean coordinator) -
setRemoteUnsettled
-
getOfferedCapabilitiesArray
public AMQPArray getOfferedCapabilitiesArray() -
visit
public void visit(AddressString addressString) -
create
public Destination create(AddressIF addressIF) - Specified by:
create
in interfaceDestinationFactory
-
verifyLocalAddress
public void verifyLocalAddress() throws AuthenticationException, QueueException, TopicException, InvalidSelectorException- Overrides:
verifyLocalAddress
in classServerLink
- Throws:
AuthenticationException
QueueException
TopicException
InvalidSelectorException
-
getLastDeliveryState
public DeliveryStateIF getLastDeliveryState() -
getLastDeliveryId
public DeliveryNumber getLastDeliveryId() -
getCurrentMessageSize
public long getCurrentMessageSize() -
abortCurrentMessage
public void abortCurrentMessage() -
getQueueSender
public QueueSender getQueueSender()- Specified by:
getQueueSender
in interfaceQueueSenderProvider
-
getQueueName
-
increaseActiveTransactions
public void increaseActiveTransactions()- Specified by:
increaseActiveTransactions
in interfaceResourceProvider
-
decreaseActiveTransactions
public void decreaseActiveTransactions()- Specified by:
decreaseActiveTransactions
in interfaceResourceProvider
-
closeResource
public void closeResource()- Specified by:
closeResource
in interfaceResourceProvider
-
addTransferFrame
- Throws:
EndWithErrorException
-
settle
- Specified by:
settle
in classServerLink
- Throws:
EndWithErrorException
-
close
public void close()- Overrides:
close
in classServerLink
-
toString
-