Class LocalMemcacheService
java.lang.Object
com.google.appengine.tools.development.AbstractLocalRpcService
com.google.appengine.api.memcache.dev.LocalMemcacheService
- All Implemented Interfaces:
LocalRpcService
@AutoService(LocalRpcService.class)
public final class LocalMemcacheService
extends AbstractLocalRpcService
Java bindings for the local Memcache service. The local cache will by default hold up to 100Mb of
combined key-and-value size. That limit can be changed with the init property
memcache.maxsize, set in megabytes ("100M"), in kilobytes ("102400K"), or in bytes
("104857600").-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.appengine.tools.development.LocalRpcService
LocalRpcService.Status -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.appengine.api.memcache.MemcacheServicePb.MemcacheBatchIncrementResponsebatchIncrement(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheBatchIncrementRequest batchReq) com.google.appengine.api.memcache.MemcacheServicePb.MemcacheDeleteResponsedelete(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheDeleteRequest req) com.google.appengine.api.memcache.MemcacheServicePb.MemcacheFlushResponseflushAll(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheFlushRequest req) com.google.appengine.api.memcache.MemcacheServicePb.MemcacheGetResponseget(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheGetRequest req) Returns the maximum size of an encoded API request in bytes, ornullfor the default size.longReturns the package for the service, for example, "datastore_v3".com.google.appengine.api.memcache.MemcacheServicePb.MemcacheIncrementResponseincrement(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheIncrementRequest req) voidinit(LocalServiceContext context, Map<String, String> properties) Initializes the service with a set of configuration properties.com.google.appengine.api.memcache.MemcacheServicePb.MemcacheSetResponseset(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheSetRequest req) voidsetLimits(int bytes) Skips the system properties to set the limit values for size and element counts.voidstart()Puts a new service into "serving" mode.com.google.appengine.api.memcache.MemcacheServicePb.MemcacheStatsResponsestats(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheStatsRequest req) voidstop()Stops the service, releasing all of its resources.Methods inherited from class com.google.appengine.tools.development.AbstractLocalRpcService
getDefaultDeadline, getMaximumDeadline
-
Field Details
-
PACKAGE
The package name for this service.- See Also:
-
SIZE_PROPERTY
- See Also:
-
-
Constructor Details
-
LocalMemcacheService
public LocalMemcacheService()
-
-
Method Details
-
getPackage
Description copied from interface:LocalRpcServiceReturns the package for the service, for example, "datastore_v3".- Returns:
- a not
nullpackage name.
-
init
Description copied from interface:LocalRpcServiceInitializes the service with a set of configuration properties. Must be called before a service isstarted.- Specified by:
initin interfaceLocalRpcService- Overrides:
initin classAbstractLocalRpcService- Parameters:
context- A context object for the applicationproperties- A read-onlyMapof properties.
-
setLimits
public void setLimits(int bytes) Skips the system properties to set the limit values for size and element counts.- Parameters:
bytes- number of bytes of keys + values that is allowed before old entries are discarded.
-
start
public void start()Description copied from interface:LocalRpcServicePuts a new service into "serving" mode. Aside from setting properties, the service is not functional until after having been started.- Specified by:
startin interfaceLocalRpcService- Overrides:
startin classAbstractLocalRpcService
-
stop
public void stop()Description copied from interface:LocalRpcServiceStops the service, releasing all of its resources.- Specified by:
stopin interfaceLocalRpcService- Overrides:
stopin classAbstractLocalRpcService
-
get
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheGetResponse get(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheGetRequest req) -
set
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheSetResponse set(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheSetRequest req) -
delete
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheDeleteResponse delete(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheDeleteRequest req) -
increment
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheIncrementResponse increment(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheIncrementRequest req) -
batchIncrement
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheBatchIncrementResponse batchIncrement(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheBatchIncrementRequest batchReq) -
flushAll
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheFlushResponse flushAll(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheFlushRequest req) -
stats
public com.google.appengine.api.memcache.MemcacheServicePb.MemcacheStatsResponse stats(LocalRpcService.Status status, com.google.appengine.api.memcache.MemcacheServicePb.MemcacheStatsRequest req) -
getMaxSizeInBytes
public long getMaxSizeInBytes() -
getMaxApiRequestSize
Description copied from interface:LocalRpcServiceReturns the maximum size of an encoded API request in bytes, ornullfor the default size.- Specified by:
getMaxApiRequestSizein interfaceLocalRpcService- Overrides:
getMaxApiRequestSizein classAbstractLocalRpcService
-