Package com.swiftmq.amqp.v100.client
Class Link
- java.lang.Object
-
- com.swiftmq.amqp.v100.client.Link
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Link(Session mySession, java.lang.String name, int qoS, DeliveryMemory deliveryMemory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cancel()
void
close()
Close this link.protected DeliveryTag
createDeliveryTag()
DeliveryMemory
getDeliveryMemory()
Return the delivery memory used by this linkjava.util.Set<AMQPSymbol>
getDesiredCapabilities()
Returns the desired capabilities.java.util.Set<AMQPSymbol>
getDestinationCapabilities()
Returns the destination capabilitiesint
getHandle()
Return the handle of this link.long
getMaxMessageSize()
Returns the maximum message size in bytesSession
getMySession()
Returns the session.java.lang.String
getName()
Returns the name of this link.java.util.Set<AMQPSymbol>
getOfferedCapabilities()
Returns the offered capabilities.int
getQoS()
Returns the quality of service of this link.AddressIF
getRemoteAddress()
Returns the remote address of this link.protected long
getRemoteHandle()
protected POObject
getWaitingClosePO()
protected POObject
getWaitingPO()
boolean
isClosed()
Indicates whether this link is closed.protected void
remoteDetach(Error error)
protected void
setDeliveryCount(long deliveryCount)
void
setDesiredCapabilities(java.util.Set<AMQPSymbol> desiredCapabilities)
Sets the desired capabilities.protected void
setDestinationCapabilities(java.util.Set<AMQPSymbol> destinationCapabilities)
protected void
setHandle(int handle)
void
setMaxMessageSize(long maxMessageSize)
Sets the maximum message size in bytes.void
setOfferedCapabilities(java.util.Set<AMQPSymbol> offeredCapabilities)
Sets the offered capabilities.protected void
setRemoteAddress(AddressIF remoteAddress)
protected void
setRemoteHandle(long remoteHandle)
protected void
setWaitingClosePO(POObject waitingClosePO)
protected void
setWaitingPO(POObject waitingPO)
protected void
verifyState()
-
-
-
Constructor Detail
-
Link
protected Link(Session mySession, java.lang.String name, int qoS, DeliveryMemory deliveryMemory)
-
-
Method Detail
-
verifyState
protected void verifyState() throws LinkClosedException
- Throws:
LinkClosedException
-
getMySession
public Session getMySession()
Returns the session.- Returns:
- session
-
getName
public java.lang.String getName()
Returns the name of this link.- Returns:
- name
-
getQoS
public int getQoS()
Returns the quality of service of this link.- Returns:
- quality of service
-
getHandle
public int getHandle()
Return the handle of this link.- Returns:
- handle
-
setHandle
protected void setHandle(int handle)
-
getRemoteAddress
public AddressIF getRemoteAddress()
Returns the remote address of this link.- Returns:
- remote address
-
setRemoteAddress
protected void setRemoteAddress(AddressIF remoteAddress)
-
getDeliveryMemory
public DeliveryMemory getDeliveryMemory()
Return the delivery memory used by this link- Returns:
- delivery memory
-
setDeliveryCount
protected void setDeliveryCount(long deliveryCount)
-
getRemoteHandle
protected long getRemoteHandle()
-
setRemoteHandle
protected void setRemoteHandle(long remoteHandle)
-
getOfferedCapabilities
public java.util.Set<AMQPSymbol> getOfferedCapabilities()
Returns the offered capabilities.- Returns:
- offered capabilities
-
setOfferedCapabilities
public void setOfferedCapabilities(java.util.Set<AMQPSymbol> offeredCapabilities)
Sets the offered capabilities.- Parameters:
offeredCapabilities
- offered capabilities
-
getDesiredCapabilities
public java.util.Set<AMQPSymbol> getDesiredCapabilities()
Returns the desired capabilities.- Returns:
- desired capabilities
-
setDesiredCapabilities
public void setDesiredCapabilities(java.util.Set<AMQPSymbol> desiredCapabilities)
Sets the desired capabilities.- Parameters:
desiredCapabilities
- desired capabilities
-
getDestinationCapabilities
public java.util.Set<AMQPSymbol> getDestinationCapabilities()
Returns the destination capabilities- Returns:
- destination capabilities
-
setDestinationCapabilities
protected void setDestinationCapabilities(java.util.Set<AMQPSymbol> destinationCapabilities)
-
getMaxMessageSize
public long getMaxMessageSize()
Returns the maximum message size in bytes- Returns:
- max message size
-
setMaxMessageSize
public void setMaxMessageSize(long maxMessageSize)
Sets the maximum message size in bytes. Default is unlimited.- Parameters:
maxMessageSize
- max message size
-
getWaitingPO
protected POObject getWaitingPO()
-
setWaitingPO
protected void setWaitingPO(POObject waitingPO)
-
getWaitingClosePO
protected POObject getWaitingClosePO()
-
setWaitingClosePO
protected void setWaitingClosePO(POObject waitingClosePO)
-
createDeliveryTag
protected DeliveryTag createDeliveryTag()
-
cancel
protected void cancel()
-
remoteDetach
protected void remoteDetach(Error error)
-
isClosed
public boolean isClosed()
Indicates whether this link is closed.- Returns:
- closed true/false
-
close
public void close() throws AMQPException
Close this link.- Throws:
AMQPException
- on error
-
-