public final class Bucket extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Bucket.Externalizer |
Constructor and Description |
---|
Bucket() |
Modifier and Type | Method and Description |
---|---|
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() |
public final void addEntry(InternalCacheEntry se)
public final boolean removeEntry(Object key)
public final InternalCacheEntry getEntry(Object key)
public Map<Object,InternalCacheEntry> getEntries()
public Integer getBucketId()
public void setBucketId(Integer bucketId)
public void setBucketId(String bucketId)
public String getBucketIdAsString()
public boolean removeExpiredEntries()
public Collection<? extends InternalCacheEntry> getStoredEntries()
public long timestampOfFirstEntryToExpire()
public boolean isEmpty()
public int getNumEntries()
public void clearEntries()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.