public class Metrics extends Thread implements Retryable<Void>, AutoCloseable
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Metrics(Sender<?,?> sender,
int samplePeriodSeconds) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Void |
retry(RetryPolicy retryPolicy,
int attemptNo)
Main run method of the
Retryable that is invoked by a
RetryPolicy, which defines the rules of retry invocations. |
void |
run() |
void |
start() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic Metrics(Sender<?,?> sender, int samplePeriodSeconds)
public Void retry(RetryPolicy retryPolicy, int attemptNo) throws Exception
RetryableRetryable that is invoked by a
RetryPolicy, which defines the rules of retry invocations.retry in interface Retryable<Void>retryPolicy - The invoking RetryPolicy.attemptNo - The incremental sequence number of the retry attempt.Exception - If an exception occurs.public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2020 LightStep. All rights reserved.