public interface Terminatable
Closeable is that a termination does not
have to happen while the terminate() method is closed.| Modifier and Type | Method and Description |
|---|---|
boolean |
isTerminated()
Returns a flag whether the object has been asked to terminate.
|
void |
terminate()
Informs the object that it should terminate.
|
boolean isTerminated()
true, it does not have to be terminated.true if it received a request to terminatevoid terminate()
Copyright © 2017–2018. All rights reserved.