public class CloseableExecutor extends Object implements AutoCloseable
This shuts down the wrapped executor when it is closed.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static CloseableExecutor |
of(ExecutorService executor)
Returns a closeable executor that wraps a passed in executor.
|
public static CloseableExecutor of(ExecutorService executor)
The passed in executor is shut down when the returned CloseableExecutor is closed.
executor - the executor to wrappublic void close()
close in interface AutoCloseableCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.