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.MetricRegistryMETRICS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstart()voidstopAsynchronously()voidstopSynchronously()voidsubmit(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:
InterruptedExceptionTimeoutException
-
-