Package cz.cvut.kbss.ontodriver
Interface Closeable
- All Known Subinterfaces:
DataSource
,ReloadableDataSource
,RepoConnection
,StorageAccessor
,StorageConnector
- All Known Implementing Classes:
BasicStorageConnector
,ChangeTrackingStorageConnector
,ConnectorFactory
,DefaultStorageAccessor
,GraphDBStorageConnection
,InferenceConnectorFactory
,JenaDataSource
,OwlapiDataSource
,Rdf4jAdapter
,Rdf4jDataSource
,ReadCommittedConnectorFactory
,SharedStorageConnector
,SnapshotConnectorFactory
,SnapshotStorageConnector
,StorageConnection
,StorageConnector
,VirtuosoDataSource
,VirtuosoStorageConnector
public interface Closeable
Interface for closeable resources.
-
Method Summary
-
Method Details
-
close
Closes this resource releasing any sub-resources it holds.After closing the resource is not usable any more and calling methods on it (except
close
andisOpen
) will result inIllegalStateException
.Calling
close
on already closed resource does nothing.- Throws:
OntoDriverException
- If an ontology access error occurs.
-
isOpen
boolean isOpen()Retrieves status of this resource.- Returns:
true
if the resource is open,false
otherwise
-