public interface WithResources
Closeable
.
See ExecutorPlus.execute(WithResources, Runnable)
Modifier and Type | Interface and Description |
---|---|
static class |
WithResources.None |
Modifier and Type | Method and Description |
---|---|
default WithResources |
and(WithResources withResources) |
static WithResources |
and(WithResources first,
WithResources second) |
Closeable |
get()
Instantiate any necessary resources
|
default boolean |
isNoOp()
A convenience method to avoid unnecessary work.
|
static WithResources |
none() |
Closeable get()
default boolean isNoOp()
get()
is invoked, nor when Closeable.close()
is invoked on the object it returns.default WithResources and(WithResources withResources)
static WithResources none()
static WithResources and(WithResources first, WithResources second)
Copyright © 2009- The Apache Software Foundation