public final class MeterStoreResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MeterStoreResult.Type |
Modifier and Type | Method and Description |
---|---|
static MeterStoreResult |
fail(MeterFailReason reason)
A failed store operation.
|
Optional<MeterFailReason> |
reason() |
static MeterStoreResult |
success()
A successful store opertion.
|
MeterStoreResult.Type |
type() |
public MeterStoreResult.Type type()
public Optional<MeterFailReason> reason()
public static MeterStoreResult success()
public static MeterStoreResult fail(MeterFailReason reason)
reason
- a failure reason