org.infinispan.loader.bucket
Class Bucket

java.lang.Object
  extended by org.infinispan.loader.bucket.Bucket
All Implemented Interfaces:
Externalizable, Serializable

public final class Bucket
extends Object
implements Externalizable

A bucket is where entries are stored.

See Also:
Serialized Form

Constructor Summary
Bucket()
           
 
Method Summary
 void addEntry(InternalCacheEntry se)
           
 String getBucketName()
           
 Map<Object,InternalCacheEntry> getEntries()
           
 InternalCacheEntry getEntry(Object key)
           
 Collection<? extends InternalCacheEntry> getStoredEntries()
           
 boolean isEmpty()
           
 void readExternal(ObjectInput in)
           
 boolean removeEntry(Object key)
           
 boolean removeExpiredEntries()
           
 void setBucketName(String bucketName)
           
 long timestampOfFirstEntryToExpire()
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
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)

writeExternal

public final void writeExternal(ObjectOutput out)
                         throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public final void readExternal(ObjectInput in)
                        throws IOException,
                               ClassNotFoundException
Specified by:
readExternal in interface Externalizable
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()


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