Package io.microraft.exception
Class CannotReplicateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.microraft.exception.RaftException
io.microraft.exception.CannotReplicateException
- All Implemented Interfaces:
Serializable
Thrown when an operation cannot be temporarily replicated. It can occur in
one of the following cases:
- There are too many inflight (i.e., appended but not-yet-committed) operations in the Raft group leader,
- There are too many inflight (i.e., pending at the Raft leader to be executed) queries,
- A new membership change is attempted before an entry is committed in the current term.
-
Constructor Summary
ConstructorDescriptionCannotReplicateException
(RaftEndpoint leader) Creates an instance of the exception. -
Method Summary
Methods inherited from class io.microraft.exception.RaftException
getLeader
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
CannotReplicateException
Creates an instance of the exception. The leader endpoint can be passed if it is known.- Parameters:
leader
- the leader endpoint if it is known, null otherwise
-
-
Method Details
-
toString
- Overrides:
toString
in classRaftException
-