java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.types.AMQPList
com.swiftmq.amqp.v100.generated.messaging.addressing.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
  • Field Details

  • Constructor Details

    • Target

      public Target(List initValue) throws Exception
      Constructs a Target.
      Parameters:
      initValue - initial value
    • Target

      public Target()
      Constructs a Target.
  • Method Details

    • 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 IOException
      Returns an array constructor (internal use)
      Returns:
      array constructor
      Throws:
      IOException
    • writeContent

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

      public 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 String toString()
      Overrides:
      toString in class AMQPList