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

    Modifier and Type
    Method
    Description
    void
    Closes this resource releasing any sub-resources it holds.
    boolean
    Retrieves status of this resource.
  • Method Details

    • close

      void close() throws OntoDriverException
      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 and isOpen) will result in IllegalStateException.

      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