Class SourceLink
java.lang.Object
com.swiftmq.impl.amqp.amqp.v01_00_00.ServerLink
com.swiftmq.impl.amqp.amqp.v01_00_00.SourceLink
- All Implemented Interfaces:
QueueReceiverProvider
,ResourceProvider
-
Constructor Summary
ConstructorDescriptionSourceLink
(SwiftletContext ctx, SessionHandler mySessionHandler, String name, int sndSettleMode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addUnsettled
(long deliveryId, MessageIndex messageIndex) void
addUnsettled
(long deliveryId, MessageIndex messageIndex, long size) void
void
autoack
(MessageIndex messageIndex) void
void
close()
void
void
void
long
TxnIdIF
OutcomeIF
long
TerminusDurability
TerminusExpiryPolicy
long
long
QueueReceiver
int
AMQPArray
void
void
boolean
isDrain()
boolean
boolean
void
setCurrentTx
(TxnIdIF currentTx) void
setDefaultOutcome
(OutcomeIF defaultOutcome) void
setDeliveryCountRcv
(long deliveryCountRcv) void
setDrain
(boolean drain) void
setDurability
(TerminusDurability durability) void
setExpiryPolicy
(TerminusExpiryPolicy expiryPolicy) void
setFlowAfterDrainRequired
(boolean flowAfterDrainRequired) void
setLinkCredit
(long linkCredit) void
setLocalAddress
(AddressIF localAddress) void
setMessageSelector
(String messageSelector) void
setNoLocal
(boolean noLocal) protected void
setRemoteAddress
(AddressIF remoteAddress) void
setRemoteUnsettled
(Map remoteUnsettled) void
settle
(long deliveryId, DeliveryStateIF deliveryState) void
setUsage
(Entity usage) void
void
startMessageProcessor
(SourceMessageProcessor messageProcessor) void
toString()
void
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
-
SourceLink
public SourceLink(SwiftletContext ctx, SessionHandler mySessionHandler, String name, int sndSettleMode)
-
-
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
-
getSupportedOutcomes
public AMQPArray getSupportedOutcomes() -
setDefaultOutcome
public void setDefaultOutcome(OutcomeIF defaultOutcome) -
getDefaultOutcome
public OutcomeIF getDefaultOutcome() -
getSndSettleMode
public int getSndSettleMode() -
getLinkCredit
public long getLinkCredit() -
getLastReceivedLinkCredit
public long getLastReceivedLinkCredit() -
setLinkCredit
public void setLinkCredit(long linkCredit) -
getExpiryPolicy
public TerminusExpiryPolicy getExpiryPolicy() -
setExpiryPolicy
public void setExpiryPolicy(TerminusExpiryPolicy expiryPolicy) -
getDurability
public TerminusDurability getDurability() -
setDurability
public void setDurability(TerminusDurability durability) -
setNoLocal
public void setNoLocal(boolean noLocal) -
setMessageSelector
-
setRemoteUnsettled
-
getQueueName
-
getCurrentTx
public TxnIdIF getCurrentTx() -
setCurrentTx
public void setCurrentTx(TxnIdIF currentTx) -
startMessageProcessor
public void startMessageProcessor() throws QueueException- Throws:
QueueException
-
startMessageProcessor
- Throws:
QueueException
-
clearMessageProcessor
public void clearMessageProcessor() -
isMessageProcessorRunning
public boolean isMessageProcessorRunning() -
stopMessageProcessor
public void stopMessageProcessor() throws QueueException- Throws:
QueueException
-
getTransformer
- Throws:
EndWithErrorException
-
getAvailable
public long getAvailable() -
getDeliveryCountSnd
public long getDeliveryCountSnd() -
setDeliveryCountRcv
public void setDeliveryCountRcv(long deliveryCountRcv) -
incDeliveryCountSnd
public void incDeliveryCountSnd() -
isDrain
public boolean isDrain() -
setDrain
public void setDrain(boolean drain) -
isFlowAfterDrainRequired
public boolean isFlowAfterDrainRequired() -
setFlowAfterDrainRequired
public void setFlowAfterDrainRequired(boolean flowAfterDrainRequired) -
advanceDeliveryCount
public void advanceDeliveryCount() -
verifyLocalAddress
public void verifyLocalAddress() throws AuthenticationException, QueueException, TopicException, InvalidSelectorException- Overrides:
verifyLocalAddress
in classServerLink
- Throws:
AuthenticationException
QueueException
TopicException
InvalidSelectorException
-
getQueueReceiver
public QueueReceiver getQueueReceiver()- Specified by:
getQueueReceiver
in interfaceQueueReceiverProvider
-
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
-
addUnsettled
public void addUnsettled(long deliveryId, MessageIndex messageIndex, long size) -
addUnsettled
public void addUnsettled(long deliveryId, MessageIndex messageIndex) -
settle
- Specified by:
settle
in classServerLink
- Throws:
EndWithErrorException
-
autoack
public void autoack(MessageIndex messageIndex) throws QueueException - Throws:
QueueException
-
close
public void close()- Overrides:
close
in classServerLink
-
toString
-