Interface ClusterFollower.Handler
- Enclosing class:
ClusterFollower
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Executes one message; the follower acknowledges it afterwards.
-
Method Summary
-
Method Details
-
handle
Executes a message.- Parameters:
op- the op code (never the shutdown code).in- the payload.- Returns:
- a value to return with the acknowledgement, or
-1for none. - Throws:
Exception- any failure; it is reported to the leader and ends the process.
-