org.ozoneDB.core.storage.gammaStore
Class Deleter
java.lang.Object
org.ozoneDB.core.storage.gammaStore.Deleter
- public class Deleter
- extends java.lang.Object
Takes care of Storable
implemeting instances, in that it
has different threads for serializing and writing to Storage
.
Remove()
ensures that if a null is
returned that the Storable
for the given key has been
completely written to Storage
.
For every instance of this class 2 threads are created, so keep this in
mind when creating instances; this might be a resource hog...
- Author:
- leo
Constructor Summary |
Deleter(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final java.util.logging.Logger log
asyncExec
private AsyncExec asyncExec
Deleter
public Deleter(java.lang.String name)
delete
public void delete(Storable storable,
StorageFactory storageFactory)
- Places a storable into a delete queue. Works like 'Fire and forget'.
size
public int size()
stopWhenReady
public void stopWhenReady()
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.