public class Quorum extends Object
| Constructor and Description |
|---|
Quorum(int quorum,
Consumer<Boolean> callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the quorum.
|
Quorum |
fail()
Indicates that a call in the quorum failed.
|
Quorum |
succeed()
Indicates that a call in the quorum succeeded.
|
public Quorum succeed()
public Quorum fail()
public void cancel()
Copyright © 2013–2017. All rights reserved.