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
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 -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a DeleteOnNoMessages.DeleteOnNoMessages
(List initValue) Constructs a DeleteOnNoMessages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(LifetimePolicyVisitor visitor) Accept method for a LifetimePolicy visitor.Returns an array constructor (internal use)int
Returns the predicted size of this DeleteOnNoMessages.Returns the value string representation of the type.boolean
Return whether this DeleteOnNoMessages has a descriptortoString()
void
writeContent
(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 Details
-
DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE -
codeConstructor
-
nameConstructor
-
-
Constructor Details
-
DeleteOnNoMessages
Constructs a DeleteOnNoMessages.- Parameters:
initValue
- initial value
-
DeleteOnNoMessages
public DeleteOnNoMessages()Constructs a DeleteOnNoMessages.
-
-
Method Details
-
hasDescriptor
public boolean hasDescriptor()Return whether this DeleteOnNoMessages has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
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
Returns an array constructor (internal use)- Returns:
- array constructor
- Throws:
IOException
-
writeContent
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPList
- Parameters:
out
- DataOutput- Throws:
IOException
- on error
-
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
-
toString
-