Class Source
java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.types.AMQPList
com.swiftmq.amqp.v100.generated.messaging.addressing.Source
- All Implemented Interfaces:
SourceIF
For containers which do not implement address resolution (and do not admit spontaneous link attachment from their partners) but are instead only used as producers of messages, it is unnecessary to provide spurious detail on the source. For this purpose it is possible to use a "minimal" source 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
(SourceVisitor visitor) Accept method for a Source visitor.Returns the optional Address field.Returns an array constructor (internal use)Returns the optional Capabilities field.Returns the optional DefaultOutcome field.Returns the optional DistributionMode field.Returns the optional Durable field.Returns the optional Dynamic field.Returns the optional DynamicNodeProperties field.Returns the optional ExpiryPolicy field.Returns the optional Filter field.Returns the optional Outcomes field.int
Returns the predicted size of this Source.Returns the optional Timeout field.Returns the value string representation of the type.boolean
Return whether this Source has a descriptorvoid
setAddress
(AddressIF address) Sets the optional Address field.void
setCapabilities
(AMQPArray capabilities) Sets the optional Capabilities field.void
setDefaultOutcome
(OutcomeIF defaultOutcome) Sets the optional DefaultOutcome field.void
setDistributionMode
(DistributionModeIF distributionMode) Sets the optional DistributionMode 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
Sets the optional Filter field.void
setOutcomes
(AMQPArray outcomes) Sets the optional Outcomes 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
-
Source
Constructs a Source.- Parameters:
initValue
- initial value
-
Source
public Source()Constructs a Source.
-
-
Method Details
-
hasDescriptor
public boolean hasDescriptor()Return whether this Source has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
Accept method for a Source 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
-
getDistributionMode
Returns the optional DistributionMode field.- Returns:
- DistributionMode
-
setDistributionMode
Sets the optional DistributionMode field.- Parameters:
distributionMode
- DistributionMode
-
getFilter
Returns the optional Filter field.- Returns:
- Filter
-
setFilter
Sets the optional Filter field.- Parameters:
filter
- Filter
-
getDefaultOutcome
Returns the optional DefaultOutcome field.- Returns:
- DefaultOutcome
-
setDefaultOutcome
Sets the optional DefaultOutcome field.- Parameters:
defaultOutcome
- DefaultOutcome
-
getOutcomes
Returns the optional Outcomes field.- Returns:
- Outcomes
-
setOutcomes
Sets the optional Outcomes field.- Parameters:
outcomes
- Outcomes
-
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 Source. The predicted size may be greater than the actual size but it can never be less.- Specified by:
getPredictedSize
in interfaceSourceIF
- 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 interfaceSourceIF
- Overrides:
getValueString
in classAMQPList
- Returns:
- value string
-
toString
-