org.infinispan.loaders.bucket
Class Bucket

java.lang.Object
  extended by org.infinispan.loaders.bucket.Bucket

public final class Bucket
extends Object

A bucket is where entries are stored.


Nested Class Summary
static class Bucket.Externalizer
           
 
Constructor Summary
Bucket()
           
 
Method Summary
 void addEntry(InternalCacheEntry se)
           
 void clearEntries()
           
 String getBucketName()
           
 Map<Object,InternalCacheEntry> getEntries()
           
 InternalCacheEntry getEntry(Object key)
           
 int getNumEntries()
           
 Collection<? extends InternalCacheEntry> getStoredEntries()
           
 boolean isEmpty()
           
 void readExternal(ObjectInput in)
           
 boolean removeEntry(Object key)
           
 boolean removeExpiredEntries()
           
 void setBucketName(String bucketName)
           
 long timestampOfFirstEntryToExpire()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket

public Bucket()
Method Detail

addEntry

public final void addEntry(InternalCacheEntry se)

removeEntry

public final boolean removeEntry(Object key)

getEntry

public final InternalCacheEntry getEntry(Object key)

readExternal

public final void readExternal(ObjectInput in)
                        throws IOException,
                               ClassNotFoundException
Throws:
IOException
ClassNotFoundException

getEntries

public Map<Object,InternalCacheEntry> getEntries()

getBucketName

public String getBucketName()

setBucketName

public void setBucketName(String bucketName)

removeExpiredEntries

public boolean removeExpiredEntries()

getStoredEntries

public Collection<? extends InternalCacheEntry> getStoredEntries()

timestampOfFirstEntryToExpire

public long timestampOfFirstEntryToExpire()

toString

public String toString()
Overrides:
toString in class Object

isEmpty

public boolean isEmpty()

getNumEntries

public int getNumEntries()

clearEntries

public void clearEntries()


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