Package io.activej.promise.jmx
Class PromiseStats
- java.lang.Object
-
- io.activej.promise.jmx.PromiseStats
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPromiseStats(@Nullable Eventloop eventloop, ValueStats duration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PromiseStatscreate(Duration smoothingWindow)static PromiseStatscreateMBean(Eventloop eventloop, Duration smoothingWindow)longgetActivePromises()@Nullable DurationgetCurrentDuration()ValueStatsgetDuration()ExceptionStatsgetExceptions()@Nullable InstantgetLastCompleteTime()@Nullable InstantgetLastStartTime()<T> Promise<T>monitor(Promise<T> promise)<T> Callback<T>recordStats()voidsetHistogram(int[] levels)voidsetHistogram(JmxHistogram histogram)StringtoString()PromiseStatswithHistogram(int[] levels)PromiseStatswithHistogram(JmxHistogram histogram)<T> AsyncSupplier<T>wrapper(AsyncSupplier<T> callable)
-
-
-
Constructor Detail
-
PromiseStats
protected PromiseStats(@Nullable @Nullable Eventloop eventloop, ValueStats duration)
-
-
Method Detail
-
createMBean
public static PromiseStats createMBean(Eventloop eventloop, Duration smoothingWindow)
-
create
public static PromiseStats create(Duration smoothingWindow)
-
withHistogram
public PromiseStats withHistogram(int[] levels)
-
withHistogram
public PromiseStats withHistogram(JmxHistogram histogram)
-
setHistogram
public void setHistogram(int[] levels)
-
setHistogram
public void setHistogram(JmxHistogram histogram)
-
wrapper
public <T> AsyncSupplier<T> wrapper(AsyncSupplier<T> callable)
-
recordStats
public <T> Callback<T> recordStats()
-
getActivePromises
public long getActivePromises()
-
getLastStartTime
@Nullable public @Nullable Instant getLastStartTime()
-
getLastCompleteTime
@Nullable public @Nullable Instant getLastCompleteTime()
-
getCurrentDuration
@Nullable public @Nullable Duration getCurrentDuration()
-
getDuration
public ValueStats getDuration()
-
getExceptions
public ExceptionStats getExceptions()
-
-