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)
getEntries
public Map<Object,InternalCacheEntry> getEntries()
getBucketId
public Integer getBucketId()
setBucketId
public void setBucketId(Integer bucketId)
setBucketId
public void setBucketId(String bucketId)
getBucketIdAsString
public String getBucketIdAsString()
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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.