Package com.swiftmq.amqp.v100.client
Class Link
java.lang.Object
com.swiftmq.amqp.v100.client.Link
Base class for links, created from a session.
- Author:
- IIT Software GmbH, Bremen/Germany, (c) 2011, All Rights Reserved
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Link
(Session mySession, String name, int qoS, DeliveryMemory deliveryMemory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cancel()
void
close()
Close this link.protected DeliveryTag
Return the delivery memory used by this linkReturns the desired capabilities.Returns the destination capabilitiesint
Return the handle of this link.long
Returns the maximum message size in bytesReturns the session.getName()
Returns the name of this link.Returns the offered capabilities.int
getQoS()
Returns the quality of service of this link.Returns the remote address of this link.protected long
protected POObject
protected POObject
boolean
isClosed()
Indicates whether this link is closed.protected void
remoteDetach
(Error error) protected void
setDeliveryCount
(long deliveryCount) void
setDesiredCapabilities
(Set<AMQPSymbol> desiredCapabilities) Sets the desired capabilities.protected void
setDestinationCapabilities
(Set<AMQPSymbol> destinationCapabilities) protected void
setHandle
(int handle) void
setMaxMessageSize
(long maxMessageSize) Sets the maximum message size in bytes.void
setOfferedCapabilities
(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
-
Constructor Details
-
Link
-
-
Method Details
-
verifyState
- Throws:
LinkClosedException
-
getMySession
Returns the session.- Returns:
- session
-
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
Returns the remote address of this link.- Returns:
- remote address
-
setRemoteAddress
-
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
Returns the offered capabilities.- Returns:
- offered capabilities
-
setOfferedCapabilities
Sets the offered capabilities.- Parameters:
offeredCapabilities
- offered capabilities
-
getDesiredCapabilities
Returns the desired capabilities.- Returns:
- desired capabilities
-
setDesiredCapabilities
Sets the desired capabilities.- Parameters:
desiredCapabilities
- desired capabilities
-
getDestinationCapabilities
Returns the destination capabilities- Returns:
- destination capabilities
-
setDestinationCapabilities
-
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
-
setWaitingPO
-
getWaitingClosePO
-
setWaitingClosePO
-
createDeliveryTag
-
cancel
protected void cancel() -
remoteDetach
-
isClosed
public boolean isClosed()Indicates whether this link is closed.- Returns:
- closed true/false
-
close
Close this link.- Throws:
AMQPException
- on error
-