public interface Stoppable
There is a difference in purpose with Closeable
: Closeable
is used with try-with-resources. A resource is an object that must be
closed after the program is finished with it. try-with-resources is used
for small scope resources. A stoppable is normally stopped when the program
terminates (Like a service).
Modifier and Type | Method and Description |
---|---|
void |
stop()
Stops (shutdowns) operations.
|
Copyright © 2015. All Rights Reserved.