All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface au.com.pharos.gdbm.Closeable

public interface Closeable
A Closeable object is one having a connection to an underlying data store that may be flushed or closed.

This interface is intended to complement the Dictionary and Collection interfaces by reflecting the fact that many such objects may be closed.

Version:
$Revision: 3.1 $
Author:
Martin Pool

Method Index

 o close()
Write outstanding changes to the underlying database, and break the connection, freeing any associated resources or locks.
 o sync()
Write outstanding changes to the underlying database, but leave the database open.

Methods

 o close
 public abstract void close() throws IOException
Write outstanding changes to the underlying database, and break the connection, freeing any associated resources or locks. This generally does not imply that the data will be lost, merely that it will be released. If this is not meaningful for a particular Closeable object, then it should be a no-op.

Throws: IOException
passed up from the underlying database.
 o sync
 public abstract void sync() throws IOException
Write outstanding changes to the underlying database, but leave the database open. If this is not meaningful for a particular Closeable object, then it should be a no-op.

Throws: IOException
passed up from the underlying database.

All Packages  Class Hierarchy  This Package  Previous  Next  Index