Package ch.njol.util
Interface Closeable
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FlatFileStorage
,LoggerFilter
,MySQLStorage
,SQLiteStorage
,SQLStorage
,Task
,VariablesStorage
Deprecated, for removal: This API element is subject to removal in a future version.
Like
Closeable
, but not used for resources, thus it neither throws checked exceptions nor causes resource leak warnings.
This is an auto-closeable resource and so may be used within a try-with-resources section for automatic disposal.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated, for removal: This API element is subject to removal in a future version.Closes this object.
-
Method Details
-
close
void close()Deprecated, for removal: This API element is subject to removal in a future version.Closes this object. This method may be called multiple times and may or may not have an effect on subsequent calls (e.g. a task might be stopped, but resumed later and stopped again).- Specified by:
close
in interfaceAutoCloseable
-
Closeable