Class Close
java.lang.Object
org.apache.qpid.protonj2.types.transport.Close
- All Implemented Interfaces:
Performative
Defines an AMQP Close performative used to end AMQP Connection instances.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.protonj2.types.transport.Performative
Performative.PerformativeHandler<E>, Performative.PerformativeType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UnsignedLong
TheUnsignedLong
descriptor code that defines this AMQP type.static final Symbol
TheSymbol
descriptor code that defines this AMQP type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
getError()
<E> void
invoke
(Performative.PerformativeHandler<E> handler, ProtonBuffer payload, int channel, E context) setError
(ErrorCondition error) Sets the error that should be conveyed with the AMQPClose
.toString()
-
Field Details
-
DESCRIPTOR_CODE
TheUnsignedLong
descriptor code that defines this AMQP type. -
DESCRIPTOR_SYMBOL
TheSymbol
descriptor code that defines this AMQP type.
-
-
Constructor Details
-
Close
public Close()
-
-
Method Details
-
getError
- Returns:
- the
ErrorCondition
conveyed in theClose
or null if non set.
-
setError
Sets the error that should be conveyed with the AMQPClose
.- Parameters:
error
- TheErrorCondition
to convey with theClose
or null if none.- Returns:
- this
Close
instance.
-
copy
- Specified by:
copy
in interfacePerformative
-
getPerformativeType
- Specified by:
getPerformativeType
in interfacePerformative
-
invoke
public <E> void invoke(Performative.PerformativeHandler<E> handler, ProtonBuffer payload, int channel, E context) - Specified by:
invoke
in interfacePerformative
-
toString
-