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
public class SourceLink extends ServerLink implements QueueReceiverProvider
-
-
Constructor Summary
Constructors Constructor Description SourceLink(SwiftletContext ctx, SessionHandler mySessionHandler, java.lang.String name, int sndSettleMode)
-
Method Summary
-
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 Detail
-
SourceLink
public SourceLink(SwiftletContext ctx, SessionHandler mySessionHandler, java.lang.String name, int sndSettleMode)
-
-
Method Detail
-
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
public void setMessageSelector(java.lang.String messageSelector)
-
setRemoteUnsettled
public void setRemoteUnsettled(java.util.Map remoteUnsettled)
-
getQueueName
public java.lang.String getQueueName()
-
getReadTransaction
public QueuePullTransaction getReadTransaction()
-
getCurrentTx
public TxnIdIF getCurrentTx()
-
setCurrentTx
public void setCurrentTx(TxnIdIF currentTx)
-
startMessageProcessor
public void startMessageProcessor() throws QueueException
- Throws:
QueueException
-
startMessageProcessor
public void startMessageProcessor(SourceMessageProcessor messageProcessor) throws QueueException
- Throws:
QueueException
-
clearMessageProcessor
public void clearMessageProcessor()
-
isMessageProcessorRunning
public boolean isMessageProcessorRunning()
-
stopMessageProcessor
public void stopMessageProcessor() throws QueueException
- Throws:
QueueException
-
getTransformer
public OutboundTransformer getTransformer() throws EndWithErrorException
- Throws:
EndWithErrorException
-
getAvailable
public long getAvailable()
-
getDeliveryCountSnd
public long getDeliveryCountSnd()
-
setDeliveryCountSnd
public void setDeliveryCountSnd(long deliveryCountSnd)
-
getDeliveryCountRcv
public long getDeliveryCountRcv()
-
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, javax.jms.InvalidSelectorException
- Overrides:
verifyLocalAddress
in classServerLink
- Throws:
AuthenticationException
QueueException
TopicException
javax.jms.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
public void settle(long deliveryId, DeliveryStateIF deliveryState) throws EndWithErrorException
- 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-