| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private ScheduledFuture | |
| private final boolean | |
| private final ScheduledExecutorService | |
| private long | |
| private final StatisticSampler. |
| Access | Constructor and Description |
|---|---|
| public | StatisticSampler(long time, TimeUnit unit, ValueStatistic<T> statistic, Consumer<Sample<T>> sink, LongSupplier timeSupplier)
|
| public | StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, Consumer<Sample<T>> sink, LongSupplier timeSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void |
| currentExecution | back to summary |
|---|---|
| private ScheduledFuture<?> currentExecution | |
| exclusiveExecutor | back to summary |
|---|---|
| private final boolean exclusiveExecutor | |
| executor | back to summary |
|---|---|
| private final ScheduledExecutorService executor | |
| period | back to summary |
|---|---|
| private long period | |
| task | back to summary |
|---|---|
| private final StatisticSampler. | |
| StatisticSampler | back to summary |
|---|---|
| public StatisticSampler(long time, TimeUnit unit, ValueStatistic<T> statistic, Consumer<Sample<T>> sink, LongSupplier timeSupplier) | |
| StatisticSampler | back to summary |
|---|---|
| public StatisticSampler(ScheduledExecutorService executor, long time, TimeUnit unit, ValueStatistic<T> statistic, Consumer<Sample<T>> sink, LongSupplier timeSupplier) | |
| setPeriod | back to summary |
|---|---|
| public synchronized void setPeriod(long time, TimeUnit unit) | |
| shutdown | back to summary |
|---|---|
| public synchronized void shutdown() throws InterruptedException | |
| start | back to summary |
|---|---|
| public synchronized void start() | |
| stop | back to summary |
|---|---|
| public synchronized void stop() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable
a runnable to be executed by new thread instance r)Implements java. Thread to run the given runnable.
|
| SamplerThreadFactory | back to summary |
|---|---|
| pack-priv SamplerThreadFactory() | |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable r) Implements java. Doc from java. Constructs a new unstarted | |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private final ValueStatistic | |
| private final LongSupplier |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| sink | back to summary |
|---|---|
| private final Consumer<Sample<T>> sink | |
| statistic | back to summary |
|---|---|
| private final ValueStatistic<T> statistic | |
| timeSupplier | back to summary |
|---|---|
| private final LongSupplier timeSupplier | |
| SamplingTask | back to summary |
|---|---|
| pack-priv SamplingTask(ValueStatistic<T> statistic, Consumer<Sample<T>> sink, LongSupplier timeSupplier) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |