public class Executor.ReservationHandle extends Object implements AutoCloseable
IllegalMonitorStateException
will be thrown.
A reservation cannot be acquired twice - any subsequent reservation
attempts after a successful one will result in #IllegalStateException
Constructor and Description |
---|
ReservationHandle()
Acquires the Executor's reservation
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
stopExecution()
Asynchronously stop the execution of execution proposal tasks
|
public void close()
close
in interface AutoCloseable
public void stopExecution()