Interface AsyncMemcacheService (2.0.0)

public interface AsyncMemcacheService extends BaseMemcacheService

An asynchronous version of MemcacheService. All methods return immediately and provide Futures as their return values.

Implements

BaseMemcacheService

Methods

<T>deleteAll(Collection<T> keys)

public abstract Future<Set<T>> <T>deleteAll(Collection<T> keys)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameter
Name Description
keys Collection<T>
Returns
Type Description
Future<Set<T>>

<T>deleteAll(Collection<T> keys, long millisNoReAdd)

public abstract Future<Set<T>> <T>deleteAll(Collection<T> keys, long millisNoReAdd)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameters
Name Description
keys Collection<T>
millisNoReAdd long
Returns
Type Description
Future<Set<T>>

<T>getAll(Collection<T> keys)

public abstract Future<Map<T,Object>> <T>getAll(Collection<T> keys)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameter
Name Description
keys Collection<T>
Returns
Type Description
Future<Map<T,Object>>

<T>getIdentifiables(Collection<T> keys)

public abstract Future<Map<T,MemcacheService.IdentifiableValue>> <T>getIdentifiables(Collection<T> keys)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameter
Name Description
keys Collection<T>
Returns
Type Description
Future<Map<T,IdentifiableValue>>

<T>getItemsForPeek(Collection<T> keys)

public abstract Future<Map<T,MemcacheService.ItemForPeek>> <T>getItemsForPeek(Collection<T> keys)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameter
Name Description
keys Collection<T>
Returns
Type Description
Future<Map<T,ItemForPeek>>

<T>incrementAll(Collection<T> keys, long delta)

public abstract Future<Map<T,Long>> <T>incrementAll(Collection<T> keys, long delta)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameters
Name Description
keys Collection<T>
delta long
Returns
Type Description
Future<Map<T,Long>>

<T>incrementAll(Collection<T> keys, long delta, Long initialValue)

public abstract Future<Map<T,Long>> <T>incrementAll(Collection<T> keys, long delta, Long initialValue)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameters
Name Description
keys Collection<T>
delta long
initialValue Long
Returns
Type Description
Future<Map<T,Long>>

<T>incrementAll(Map<T,Long> offsets)

public abstract Future<Map<T,Long>> <T>incrementAll(Map<T,Long> offsets)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameter
Name Description
offsets Map<T,Long>
Returns
Type Description
Future<Map<T,Long>>

<T>incrementAll(Map<T,Long> offsets, Long initialValue)

public abstract Future<Map<T,Long>> <T>incrementAll(Map<T,Long> offsets, Long initialValue)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameters
Name Description
offsets Map<T,Long>
initialValue Long
Returns
Type Description
Future<Map<T,Long>>

<T>putAll(Map<T,?> values, Expiration expires, MemcacheService.SetPolicy policy)

public abstract Future<Set<T>> <T>putAll(Map<T,?> values, Expiration expires, MemcacheService.SetPolicy policy)
Parameters
Name Description
values Map<T,?>
expires Expiration
policy MemcacheService.SetPolicy
Returns
Type Description
Future<Set<T>>

<T>putIfUntouched(Map<T,MemcacheService.CasValues> values)

public abstract Future<Set<T>> <T>putIfUntouched(Map<T,MemcacheService.CasValues> values)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameter
Name Description
values Map<T,CasValues>
Returns
Type Description
Future<Set<T>>

<T>putIfUntouched(Map<T,MemcacheService.CasValues> values, Expiration expiration)

public abstract Future<Set<T>> <T>putIfUntouched(Map<T,MemcacheService.CasValues> values, Expiration expiration)

See Also: <xref uid="com.google.appengine.api.memcache.MemcacheService.

Parameters
Name Description
values Map<T,CasValues>
expiration Expiration
Returns
Type Description
Future<Set<T>>

clearAll()

public abstract Future<Void> clearAll()
Returns
Type Description
Future<Void>

contains(Object key)

public abstract Future<Boolean> contains(Object key)
Parameter
Name Description
key Object
Returns
Type Description
Future<Boolean>

delete(Object key)

public abstract Future<Boolean> delete(Object key)
Parameter
Name Description
key Object
Returns
Type Description
Future<Boolean>

delete(Object key, long millisNoReAdd)

public abstract Future<Boolean> delete(Object key, long millisNoReAdd)
Parameters
Name Description
key Object
millisNoReAdd long
Returns
Type Description
Future<Boolean>

get(Object key)

public abstract Future<Object> get(Object key)
Parameter
Name Description
key Object
Returns
Type Description
Future<Object>

getIdentifiable(Object key)

public abstract Future<MemcacheService.IdentifiableValue> getIdentifiable(Object key)
Parameter
Name Description
key Object
Returns
Type Description
Future<IdentifiableValue>

getItemForPeek(Object key)

public abstract Future<MemcacheService.ItemForPeek> getItemForPeek(Object key)
Parameter
Name Description
key Object
Returns
Type Description
Future<ItemForPeek>

getStatistics()

public abstract Future<Stats> getStatistics()
Returns
Type Description
Future<Stats>

increment(Object key, long delta)

public abstract Future<Long> increment(Object key, long delta)
Parameters
Name Description
key Object
delta long
Returns
Type Description
Future<Long>

increment(Object key, long delta, Long initialValue)

public abstract Future<Long> increment(Object key, long delta, Long initialValue)
Parameters
Name Description
key Object
delta long
initialValue Long
Returns
Type Description
Future<Long>

put(Object key, Object value)

public abstract Future<Void> put(Object key, Object value)
Parameters
Name Description
key Object
value Object
Returns
Type Description
Future<Void>

put(Object key, Object value, Expiration expires)

public abstract Future<Void> put(Object key, Object value, Expiration expires)
Parameters
Name Description
key Object
value Object
expires Expiration
Returns
Type Description
Future<Void>

put(Object key, Object value, Expiration expires, MemcacheService.SetPolicy policy)

public abstract Future<Boolean> put(Object key, Object value, Expiration expires, MemcacheService.SetPolicy policy)
Parameters
Name Description
key Object
value Object
expires Expiration
policy MemcacheService.SetPolicy
Returns
Type Description
Future<Boolean>

putAll(Map<?,?> values)

public abstract Future<Void> putAll(Map<?,?> values)
Parameter
Name Description
values Map<?,?>
Returns
Type Description
Future<Void>

putAll(Map<?,?> values, Expiration expires)

public abstract Future<Void> putAll(Map<?,?> values, Expiration expires)
Parameters
Name Description
values Map<?,?>
expires Expiration
Returns
Type Description
Future<Void>

putIfUntouched(Object key, MemcacheService.IdentifiableValue oldValue, Object newValue)

public abstract Future<Boolean> putIfUntouched(Object key, MemcacheService.IdentifiableValue oldValue, Object newValue)
Parameters
Name Description
key Object
oldValue MemcacheService.IdentifiableValue
newValue Object
Returns
Type Description
Future<Boolean>

putIfUntouched(Object key, MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expires)

public abstract Future<Boolean> putIfUntouched(Object key, MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expires)

See Also: MemcacheService#putIfUntouched(Object, IdentifiableValue, Object, Expiration)

Parameters
Name Description
key Object
oldValue MemcacheService.IdentifiableValue
newValue Object
expires Expiration
Returns
Type Description
Future<Boolean>