Class DeleteOnNoMessages

  • All Implemented Interfaces:
    LifetimePolicyIF

    public class DeleteOnNoMessages
    extends AMQPList
    implements LifetimePolicyIF

    A node dynamically created with this lifetime policy will be deleted at the point that the link which caused its creation no longer exists and there remain no messages at the node.

    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

      • DeleteOnNoMessages

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

        public DeleteOnNoMessages()
        Constructs a DeleteOnNoMessages.
    • Method Detail

      • hasDescriptor

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

        public int getPredictedSize()
        Returns the predicted size of this DeleteOnNoMessages. The predicted size may be greater than the actual size but it can never be less.
        Specified by:
        getPredictedSize in interface LifetimePolicyIF
        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
      • toString

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