Class Target
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
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(TargetVisitor visitor) Accept method for a Target visitor.Returns the optional Address field.Returns an array constructor (internal use)Returns the optional Capabilities field.Returns the optional Durable field.Returns the optional Dynamic field.Returns the optional DynamicNodeProperties field.Returns the optional ExpiryPolicy field.int
Returns the predicted size of this Target.Returns the optional Timeout field.Returns the value string representation of the type.boolean
Return whether this Target has a descriptorvoid
setAddress
(AddressIF address) Sets the optional Address field.void
setCapabilities
(AMQPArray capabilities) Sets the optional Capabilities field.void
setDurable
(TerminusDurability durable) Sets the optional Durable field.void
setDynamic
(AMQPBoolean dynamic) Sets the optional Dynamic field.void
setDynamicNodeProperties
(NodeProperties dynamicNodeProperties) Sets the optional DynamicNodeProperties field.void
setExpiryPolicy
(TerminusExpiryPolicy expiryPolicy) Sets the optional ExpiryPolicy field.void
setTimeout
(Seconds timeout) Sets the optional Timeout field.toString()
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
-
Target
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 classAMQPType
- Returns:
- true/false
-
accept
Accept method for a Target visitor. -
getAddress
Returns the optional Address field.- Returns:
- Address
-
setAddress
Sets the optional Address field.- Parameters:
address
- Address
-
getDurable
Returns the optional Durable field.- Returns:
- Durable
-
setDurable
Sets the optional Durable field.- Parameters:
durable
- Durable
-
getExpiryPolicy
Returns the optional ExpiryPolicy field.- Returns:
- ExpiryPolicy
-
setExpiryPolicy
Sets the optional ExpiryPolicy field.- Parameters:
expiryPolicy
- ExpiryPolicy
-
getTimeout
Returns the optional Timeout field.- Returns:
- Timeout
-
setTimeout
Sets the optional Timeout field.- Parameters:
timeout
- Timeout
-
getDynamic
Returns the optional Dynamic field.- Returns:
- Dynamic
-
setDynamic
Sets the optional Dynamic field.- Parameters:
dynamic
- Dynamic
-
getDynamicNodeProperties
Returns the optional DynamicNodeProperties field.- Returns:
- DynamicNodeProperties
-
setDynamicNodeProperties
Sets the optional DynamicNodeProperties field.- Parameters:
dynamicNodeProperties
- DynamicNodeProperties
-
getCapabilities
Returns the optional Capabilities field.- Returns:
- Capabilities
-
setCapabilities
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 interfaceTargetIF
- 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 interfaceTargetIF
- Overrides:
getValueString
in classAMQPList
- Returns:
- value string
-
toString
-