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()
           
 Integer getBucketId()
           
 String getBucketIdAsString()
           
 Map<Object,InternalCacheEntry> getEntries()
           
 InternalCacheEntry getEntry(Object key)
           
 int getNumEntries()
           
 Collection<? extends InternalCacheEntry> getStoredEntries()
           
 boolean isEmpty()
           
 boolean removeEntry(Object key)
           
 boolean removeExpiredEntries()
           
 void setBucketId(Integer bucketId)
           
 void setBucketId(String bucketId)
           
 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)

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 © 2011 JBoss, a division of Red Hat. All Rights Reserved.