Class PendingAckHandleState
- java.lang.Object
-
- org.apache.pulsar.broker.transaction.pendingack.impl.PendingAckHandleState
-
- Direct Known Subclasses:
PendingAckHandleImpl
public abstract class PendingAckHandleState extends java.lang.ObjectThe implement of transaction pending ack store.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPendingAckHandleState.StateThe state of the pending ack handlePendingAckHandleState.
-
Field Summary
Fields Modifier and Type Field Description protected PendingAckHandleState.Statestate
-
Constructor Summary
Constructors Constructor Description PendingAckHandleState(PendingAckHandleState.State state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidchangeToCloseState()protected voidchangeToErrorState()protected booleanchangeToInitializingState()protected booleanchangeToReadyState()booleancheckIfClose()booleancheckIfReady()PendingAckHandleState.StategetState()
-
-
-
Field Detail
-
state
protected volatile PendingAckHandleState.State state
-
-
Constructor Detail
-
PendingAckHandleState
public PendingAckHandleState(PendingAckHandleState.State state)
-
-
Method Detail
-
changeToReadyState
protected boolean changeToReadyState()
-
changeToInitializingState
protected boolean changeToInitializingState()
-
changeToCloseState
protected void changeToCloseState()
-
changeToErrorState
protected void changeToErrorState()
-
checkIfReady
public boolean checkIfReady()
-
checkIfClose
public boolean checkIfClose()
-
getState
public PendingAckHandleState.State getState()
-
-