Class Target

  • All Implemented Interfaces:
    TargetIF

    public class Target
    extends AMQPList
    implements TargetIF

    For containers which do not implement address resolution (and do not admit spontaneous link attachment from their partners) but are instead only used as consumers of messages, it is unnecessary to provide spurious detail on the source. For this purpose it is possible to use a "minimal" target in which all the fields are left unset.

    Version:
    AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
    Author:
    IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
    • Constructor Detail

      • Target

        public Target​(java.util.List initValue)
               throws java.lang.Exception
        Constructs a Target.
        Parameters:
        initValue - initial value
        Throws:
        error - during initialization
        java.lang.Exception
      • Target

        public Target()
        Constructs a Target.
    • Method Detail

      • hasDescriptor

        public boolean hasDescriptor()
        Return whether this Target has a descriptor
        Overrides:
        hasDescriptor in class AMQPType
        Returns:
        true/false
      • accept

        public void accept​(TargetVisitor visitor)
        Accept method for a Target visitor.
        Specified by:
        accept in interface TargetIF
        Parameters:
        visitor - Target visitor
      • getAddress

        public AddressIF getAddress()
        Returns the optional Address field.
        Returns:
        Address
      • setAddress

        public void setAddress​(AddressIF address)
        Sets the optional Address field.
        Parameters:
        address - Address
      • getDurable

        public TerminusDurability getDurable()
        Returns the optional Durable field.
        Returns:
        Durable
      • setDurable

        public void setDurable​(TerminusDurability durable)
        Sets the optional Durable field.
        Parameters:
        durable - Durable
      • getExpiryPolicy

        public TerminusExpiryPolicy getExpiryPolicy()
        Returns the optional ExpiryPolicy field.
        Returns:
        ExpiryPolicy
      • setExpiryPolicy

        public void setExpiryPolicy​(TerminusExpiryPolicy expiryPolicy)
        Sets the optional ExpiryPolicy field.
        Parameters:
        expiryPolicy - ExpiryPolicy
      • getTimeout

        public Seconds getTimeout()
        Returns the optional Timeout field.
        Returns:
        Timeout
      • setTimeout

        public void setTimeout​(Seconds timeout)
        Sets the optional Timeout field.
        Parameters:
        timeout - Timeout
      • getDynamic

        public AMQPBoolean getDynamic()
        Returns the optional Dynamic field.
        Returns:
        Dynamic
      • setDynamic

        public void setDynamic​(AMQPBoolean dynamic)
        Sets the optional Dynamic field.
        Parameters:
        dynamic - Dynamic
      • getDynamicNodeProperties

        public NodeProperties getDynamicNodeProperties()
        Returns the optional DynamicNodeProperties field.
        Returns:
        DynamicNodeProperties
      • setDynamicNodeProperties

        public void setDynamicNodeProperties​(NodeProperties dynamicNodeProperties)
        Sets the optional DynamicNodeProperties field.
        Parameters:
        dynamicNodeProperties - DynamicNodeProperties
      • getCapabilities

        public AMQPArray getCapabilities()
        Returns the optional Capabilities field.
        Returns:
        Capabilities
      • setCapabilities

        public void setCapabilities​(AMQPArray capabilities)
        Sets the optional Capabilities field.
        Parameters:
        capabilities - Capabilities
      • getPredictedSize

        public int getPredictedSize()
        Returns the predicted size of this Target. The predicted size may be greater than the actual size but it can never be less.
        Specified by:
        getPredictedSize in interface TargetIF
        Overrides:
        getPredictedSize in class AMQPList
        Returns:
        predicted size
      • getArrayConstructor

        public AMQPDescribedConstructor getArrayConstructor()
                                                     throws java.io.IOException
        Returns an array constructor (internal use)
        Returns:
        array constructor
        Throws:
        java.io.IOException
      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Description copied from class: AMQPType
        Write the content of this type to a DataOutput.
        Overrides:
        writeContent in class AMQPList
        Parameters:
        out - DataOutput
        Throws:
        java.io.IOException - on error
      • getValueString

        public java.lang.String getValueString()
        Description copied from class: AMQPType
        Returns the value string representation of the type.
        Specified by:
        getValueString in interface TargetIF
        Overrides:
        getValueString in class AMQPList
        Returns:
        value string
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class AMQPList