Class Link

java.lang.Object
com.swiftmq.amqp.v100.client.Link
Direct Known Subclasses:
Consumer, Producer

public class Link extends Object

Base class for links, created from a session.

Author:
IIT Software GmbH, Bremen/Germany, (c) 2011, All Rights Reserved
  • Constructor Details

  • Method Details

    • verifyState

      protected void verifyState() throws LinkClosedException
      Throws:
      LinkClosedException
    • getMySession

      public Session getMySession()
      Returns the session.
      Returns:
      session
    • getName

      public 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 Set<AMQPSymbol> getOfferedCapabilities()
      Returns the offered capabilities.
      Returns:
      offered capabilities
    • setOfferedCapabilities

      public void setOfferedCapabilities(Set<AMQPSymbol> offeredCapabilities)
      Sets the offered capabilities.
      Parameters:
      offeredCapabilities - offered capabilities
    • getDesiredCapabilities

      public Set<AMQPSymbol> getDesiredCapabilities()
      Returns the desired capabilities.
      Returns:
      desired capabilities
    • setDesiredCapabilities

      public void setDesiredCapabilities(Set<AMQPSymbol> desiredCapabilities)
      Sets the desired capabilities.
      Parameters:
      desiredCapabilities - desired capabilities
    • getDestinationCapabilities

      public Set<AMQPSymbol> getDestinationCapabilities()
      Returns the destination capabilities
      Returns:
      destination capabilities
    • setDestinationCapabilities

      protected void setDestinationCapabilities(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