public final class MeterStoreResult
extends java.lang.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.
|
java.util.Optional<MeterFailReason> |
reason() |
static MeterStoreResult |
success()
A successful store opertion.
|
MeterStoreResult.Type |
type() |
public MeterStoreResult.Type type()
public java.util.Optional<MeterFailReason> reason()
public static MeterStoreResult success()
public static MeterStoreResult fail(MeterFailReason reason)
reason
- a failure reason