Class Close
- java.lang.Object
-
- org.apache.qpid.protonj2.types.transport.Close
-
- All Implemented Interfaces:
Performative
public final class Close extends Object implements 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
Fields Modifier and Type Field Description static UnsignedLongDESCRIPTOR_CODETheUnsignedLongdescriptor code that defines this AMQP type.static SymbolDESCRIPTOR_SYMBOLTheSymboldescriptor code that defines this AMQP type.
-
Constructor Summary
Constructors Constructor Description Close()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Closecopy()ErrorConditiongetError()Performative.PerformativeTypegetPerformativeType()<E> voidinvoke(Performative.PerformativeHandler<E> handler, ProtonBuffer payload, int channel, E context)ClosesetError(ErrorCondition error)Sets the error that should be conveyed with the AMQPClose.StringtoString()
-
-
-
Field Detail
-
DESCRIPTOR_CODE
public static final UnsignedLong DESCRIPTOR_CODE
TheUnsignedLongdescriptor code that defines this AMQP type.
-
-
Method Detail
-
getError
public ErrorCondition getError()
- Returns:
- the
ErrorConditionconveyed in theCloseor null if non set.
-
setError
public Close setError(ErrorCondition error)
Sets the error that should be conveyed with the AMQPClose.- Parameters:
error- TheErrorConditionto convey with theCloseor null if none.- Returns:
- this
Closeinstance.
-
copy
public Close copy()
- Specified by:
copyin interfacePerformative
-
getPerformativeType
public Performative.PerformativeType getPerformativeType()
- Specified by:
getPerformativeTypein interfacePerformative
-
invoke
public <E> void invoke(Performative.PerformativeHandler<E> handler, ProtonBuffer payload, int channel, E context)
- Specified by:
invokein interfacePerformative
-
-