org.infinispan.loaders.bucket
Class BucketBasedCacheStore.CollectionGeneratingBucketHandler<T>

java.lang.Object
  extended by org.infinispan.loaders.bucket.BucketBasedCacheStore.CollectionGeneratingBucketHandler<T>
All Implemented Interfaces:
BucketBasedCacheStore.BucketHandler
Enclosing class:
BucketBasedCacheStore

protected abstract class BucketBasedCacheStore.CollectionGeneratingBucketHandler<T>
extends Object
implements BucketBasedCacheStore.BucketHandler


Constructor Summary
protected BucketBasedCacheStore.CollectionGeneratingBucketHandler()
           
 
Method Summary
abstract  boolean consider(Collection<? extends InternalCacheEntry> entries)
           
 Set<T> generate()
           
 boolean handle(Bucket bucket)
          Handles a bucket that is passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BucketBasedCacheStore.CollectionGeneratingBucketHandler

protected BucketBasedCacheStore.CollectionGeneratingBucketHandler()
Method Detail

consider

public abstract boolean consider(Collection<? extends InternalCacheEntry> entries)

generate

public Set<T> generate()

handle

public boolean handle(Bucket bucket)
               throws CacheLoaderException
Description copied from interface: BucketBasedCacheStore.BucketHandler
Handles a bucket that is passed in.

Specified by:
handle in interface BucketBasedCacheStore.BucketHandler
Parameters:
bucket - bucket to handle. Cannot be null.
Returns:
true if no more buckets should be passed in (enoiugh buckets have been handled). false otherwise.
Throws:
CacheLoaderException

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.