org.infinispan.loaders.bucket
Class Bucket
java.lang.Object
org.infinispan.loaders.bucket.Bucket
public final class Bucket
- extends Object
A bucket is where entries are stored.
Bucket
public Bucket()
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.