Class Disposition
- java.lang.Object
-
- org.apache.qpid.protonj2.types.transport.Disposition
-
- All Implemented Interfaces:
Performative
public final class Disposition extends Object implements Performative
-
-
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
static Symbol
DESCRIPTOR_SYMBOL
-
Constructor Summary
Constructors Constructor Description Disposition()
-
Method Summary
-
-
-
Field Detail
-
DESCRIPTOR_CODE
public static final UnsignedLong DESCRIPTOR_CODE
-
DESCRIPTOR_SYMBOL
public static final Symbol DESCRIPTOR_SYMBOL
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getElementCount
public int getElementCount()
-
hasElement
public boolean hasElement(int index)
-
hasRole
public boolean hasRole()
-
hasFirst
public boolean hasFirst()
-
hasLast
public boolean hasLast()
-
hasSettled
public boolean hasSettled()
-
hasState
public boolean hasState()
-
hasBatchable
public boolean hasBatchable()
-
getRole
public Role getRole()
-
setRole
public Disposition setRole(Role role)
-
clearRole
public Disposition clearRole()
-
getFirst
public long getFirst()
-
setFirst
public Disposition setFirst(int first)
-
setFirst
public Disposition setFirst(long first)
-
clearFirst
public Disposition clearFirst()
-
getLast
public long getLast()
-
setLast
public Disposition setLast(int last)
-
setLast
public Disposition setLast(long last)
-
clearLast
public Disposition clearLast()
-
getSettled
public boolean getSettled()
-
setSettled
public Disposition setSettled(boolean settled)
-
clearSettled
public Disposition clearSettled()
-
getState
public DeliveryState getState()
-
setState
public Disposition setState(DeliveryState state)
-
clearState
public Disposition clearState()
-
getBatchable
public boolean getBatchable()
-
setBatchable
public Disposition setBatchable(boolean batchable)
-
clearBatchable
public Disposition clearBatchable()
-
reset
public Disposition reset()
-
copy
public Disposition 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
-
-