java.lang.Object
io.github.bucket4j.VerboseResult<T>
- All Implemented Interfaces:
ComparableByContent<VerboseResult<?>>
Intention of this class is to provide wrapper around results returned by any method of
VerboseBucket and AsyncVerboseBucket.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDescriber of internal bucket state -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalsByContent(VerboseResult<?> other) longgetState()getValue()<R> VerboseResult<R><R> VerboseResult<R>withValue(R newValue)
-
Constructor Details
-
VerboseResult
-
-
Method Details
-
getValue
- Returns:
- result of operation with bucket
-
getConfiguration
- Returns:
- snapshot of configuration which was actual at operation time
-
getState
- Returns:
- snapshot of internal bucket state which was actual at operation time
-
getOperationTimeNanos
public long getOperationTimeNanos()- Returns:
- time which was used by the bucket at the moment of handling a request
-
getDiagnostics
- Returns:
- internal state describer
-
map
-
withValue
-
equalsByContent
- Specified by:
equalsByContentin interfaceComparableByContent<T>
-