Class DeleteOnNoMessages
- java.lang.Object
-
- com.swiftmq.amqp.v100.types.AMQPType
-
- com.swiftmq.amqp.v100.types.AMQPList
-
- com.swiftmq.amqp.v100.generated.messaging.addressing.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
-
-
Field Summary
Fields Modifier and Type Field Description AMQPDescribedConstructor
codeConstructor
static long
DESCRIPTOR_CODE
static java.lang.String
DESCRIPTOR_NAME
AMQPDescribedConstructor
nameConstructor
-
Constructor Summary
Constructors Constructor Description DeleteOnNoMessages()
Constructs a DeleteOnNoMessages.DeleteOnNoMessages(java.util.List initValue)
Constructs a DeleteOnNoMessages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(LifetimePolicyVisitor visitor)
Accept method for a LifetimePolicy visitor.AMQPDescribedConstructor
getArrayConstructor()
Returns an array constructor (internal use)int
getPredictedSize()
Returns the predicted size of this DeleteOnNoMessages.java.lang.String
getValueString()
Returns the value string representation of the type.boolean
hasDescriptor()
Return whether this DeleteOnNoMessages has a descriptorjava.lang.String
toString()
void
writeContent(java.io.DataOutput out)
Write the content of this type to a DataOutput.-
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPList
getValue, readContent, setValue
-
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPType
getCode, getConstructor, getName, isWriteCode, resetConstructor, setCode, setConstructor, setWriteCode
-
-
-
-
Field Detail
-
DESCRIPTOR_NAME
public static java.lang.String DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE
-
codeConstructor
public AMQPDescribedConstructor codeConstructor
-
nameConstructor
public AMQPDescribedConstructor nameConstructor
-
-
Constructor Detail
-
DeleteOnNoMessages
public DeleteOnNoMessages(java.util.List initValue) throws java.lang.Exception
Constructs a DeleteOnNoMessages.- Parameters:
initValue
- initial value- Throws:
error
- during initializationjava.lang.Exception
-
DeleteOnNoMessages
public DeleteOnNoMessages()
Constructs a DeleteOnNoMessages.
-
-
Method Detail
-
hasDescriptor
public boolean hasDescriptor()
Return whether this DeleteOnNoMessages has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
public void accept(LifetimePolicyVisitor visitor)
Accept method for a LifetimePolicy visitor.- Specified by:
accept
in interfaceLifetimePolicyIF
- Parameters:
visitor
- LifetimePolicy visitor
-
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 interfaceLifetimePolicyIF
- Overrides:
getPredictedSize
in classAMQPList
- 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 classAMQPList
- 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 interfaceLifetimePolicyIF
- Overrides:
getValueString
in classAMQPList
- Returns:
- value string
-
-