Class Link

  • Direct Known Subclasses:
    Consumer, Producer

    public class Link
    extends java.lang.Object

    Base class for links, created from a session.

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

      • Link

        protected Link​(Session mySession,
                       java.lang.String name,
                       int qoS,
                       DeliveryMemory deliveryMemory)
    • Method Detail

      • 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