ozone core API

org.ozoneDB.core.storage.gammaStore
Class Deleter

java.lang.Object
  extended byorg.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

Nested Class Summary
private  class Deleter.DeleteTask
           
 
Field Summary
private  AsyncExec asyncExec
           
private static java.util.logging.Logger log
           
 
Constructor Summary
Deleter(java.lang.String name)
           
 
Method Summary
 void delete(Storable storable, StorageFactory storageFactory)
          Places a storable into a delete queue.
 int size()
           
 void stopWhenReady()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final java.util.logging.Logger log

asyncExec

private AsyncExec asyncExec
Constructor Detail

Deleter

public Deleter(java.lang.String name)
Method Detail

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()

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.