Class AsyncWriter<T>
- java.lang.Object
-
- org.datadog.jenkins.plugins.datadog.util.AsyncWriter<T>
-
public final class AsyncWriter<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.codahale.metrics.MetricRegistry
METRICS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start()
void
stopAsynchronously()
void
stopSynchronously()
void
submit(T element)
-
-
-
Method Detail
-
start
public void start()
-
stopAsynchronously
public void stopAsynchronously()
-
stopSynchronously
public void stopSynchronously() throws InterruptedException
- Throws:
InterruptedException
-
submit
public void submit(@Nullable T element) throws InterruptedException, TimeoutException
- Throws:
InterruptedException
TimeoutException
-
-