com.timeindexing.cache
Class HollowAtDataVolumePolicy

java.lang.Object
  extended bycom.timeindexing.cache.AbstractCachePolicy
      extended bycom.timeindexing.cache.HollowAtDataVolumePolicy
All Implemented Interfaces:
CachePolicy

public class HollowAtDataVolumePolicy
extends AbstractCachePolicy
implements CachePolicy

Hollow items after the amount of held data reaches a certain volume


Constructor Summary
HollowAtDataVolumePolicy()
          Construct this policy object
HollowAtDataVolumePolicy(long volume)
          Construct this policy object
 
Method Summary
 java.lang.Object notifyAddItemBegin(IndexItem item, long pos)
          Called at the beginning of cache.addItem()
 java.lang.Object notifyAddItemEnd(IndexItem item, long pos)
          Called at the beginning of cache.addItem()
 java.lang.Object notifyGetItemBegin(IndexItem item, long pos)
          Called at the beginning of cache.getItem()
 java.lang.Object notifyGetItemEnd(IndexItem item, long pos)
          Called at the end of cache.getItem()
 java.lang.String toString()
          TO String
 
Methods inherited from class com.timeindexing.cache.AbstractCachePolicy
getIndexCache, isInFirst, setIndexCache, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.timeindexing.cache.CachePolicy
getIndexCache, setIndexCache
 

Constructor Detail

HollowAtDataVolumePolicy

public HollowAtDataVolumePolicy()
Construct this policy object


HollowAtDataVolumePolicy

public HollowAtDataVolumePolicy(long volume)
Construct this policy object

Method Detail

notifyAddItemBegin

public java.lang.Object notifyAddItemBegin(IndexItem item,
                                           long pos)
Called at the beginning of cache.addItem()

Specified by:
notifyAddItemBegin in interface CachePolicy
Overrides:
notifyAddItemBegin in class AbstractCachePolicy
Parameters:
item - the item being added
pos - the position the item is being added to

notifyAddItemEnd

public java.lang.Object notifyAddItemEnd(IndexItem item,
                                         long pos)
Called at the beginning of cache.addItem()

Specified by:
notifyAddItemEnd in interface CachePolicy
Overrides:
notifyAddItemEnd in class AbstractCachePolicy
Parameters:
item - the item being added
pos - the position the item is being added to

notifyGetItemBegin

public java.lang.Object notifyGetItemBegin(IndexItem item,
                                           long pos)
Called at the beginning of cache.getItem()

Specified by:
notifyGetItemBegin in interface CachePolicy
Overrides:
notifyGetItemBegin in class AbstractCachePolicy
Parameters:
pos - the position being requested

notifyGetItemEnd

public java.lang.Object notifyGetItemEnd(IndexItem item,
                                         long pos)
Called at the end of cache.getItem()

Specified by:
notifyGetItemEnd in interface CachePolicy
Overrides:
notifyGetItemEnd in class AbstractCachePolicy
Parameters:
item - the item being returned

toString

public java.lang.String toString()
TO String