|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.cache.EntityMemcache.Bucket
public class EntityMemcache.Bucket
A bucket represents memcache information for a particular Key. It might have an entity, it might be a negative cache result, it might be empty. Buckets can be hash keys; they hash to their Key value.
Constructor Summary | |
---|---|
EntityMemcache.Bucket(com.google.appengine.api.datastore.Key key)
Crate a bucket with an uncacheable key. |
|
EntityMemcache.Bucket(com.google.appengine.api.datastore.Key key,
com.google.appengine.api.memcache.MemcacheService.IdentifiableValue iv)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
com.google.appengine.api.datastore.Entity |
getEntity()
Get the entity stored at this bucket, possibly the one that was set |
com.google.appengine.api.datastore.Key |
getKey()
|
int |
hashCode()
|
boolean |
isCacheable()
|
boolean |
isEmpty()
"Empty" means we don't know the value - it could be null, it could be uncacheable, or we could have some really weird unknown data in the cache. |
boolean |
isNegative()
|
void |
setNext(com.google.appengine.api.datastore.Entity value)
Prepare the value that will be set in memcache in the next putAll(). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityMemcache.Bucket(com.google.appengine.api.datastore.Key key)
public EntityMemcache.Bucket(com.google.appengine.api.datastore.Key key, com.google.appengine.api.memcache.MemcacheService.IdentifiableValue iv)
iv
- can be null to indicate an uncacheable keyMethod Detail |
---|
public com.google.appengine.api.datastore.Key getKey()
public boolean isCacheable()
public boolean isNegative()
public boolean isEmpty()
public com.google.appengine.api.datastore.Entity getEntity()
public void setNext(com.google.appengine.api.datastore.Entity value)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |