Class Close
- java.lang.Object
-
- org.apache.qpid.protonj2.types.transport.Close
-
- All Implemented Interfaces:
Performative
public final class Close extends java.lang.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 UnsignedLong
DESCRIPTOR_CODE
TheUnsignedLong
descriptor code that defines this AMQP type.static Symbol
DESCRIPTOR_SYMBOL
TheSymbol
descriptor 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 Close
copy()
ErrorCondition
getError()
Performative.PerformativeType
getPerformativeType()
<E> void
invoke(Performative.PerformativeHandler<E> handler, ProtonBuffer payload, int channel, E context)
Close
setError(ErrorCondition error)
Sets the error that should be conveyed with the AMQPClose
.java.lang.String
toString()
-
-
-
Field Detail
-
DESCRIPTOR_CODE
public static final UnsignedLong DESCRIPTOR_CODE
TheUnsignedLong
descriptor code that defines this AMQP type.
-
-
Method Detail
-
getError
public ErrorCondition getError()
- Returns:
- the
ErrorCondition
conveyed in theClose
or null if non set.
-
setError
public Close setError(ErrorCondition error)
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
public Close copy()
- Specified by:
copy
in interfacePerformative
-
getPerformativeType
public Performative.PerformativeType 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-