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
FieldsModifier and TypeFieldDescriptionstatic final UnsignedLongTheUnsignedLongdescriptor code that defines this AMQP type.static final SymbolTheSymboldescriptor code that defines this AMQP type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getError()<E> voidinvoke(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
TheUnsignedLongdescriptor code that defines this AMQP type. -
DESCRIPTOR_SYMBOL
TheSymboldescriptor code that defines this AMQP type.
-
-
Constructor Details
-
Close
public Close()
-
-
Method Details
-
getError
- Returns:
- the
ErrorConditionconveyed in theCloseor null if non set.
-
setError
Sets the error that should be conveyed with the AMQPClose.- Parameters:
error- TheErrorConditionto convey with theCloseor null if none.- Returns:
- this
Closeinstance.
-
copy
- Specified by:
copyin interfacePerformative
-
getPerformativeType
- Specified by:
getPerformativeTypein interfacePerformative
-
invoke
public <E> void invoke(Performative.PerformativeHandler<E> handler, ProtonBuffer payload, int channel, E context) - Specified by:
invokein interfacePerformative
-
toString
-