public class CustomObjectServiceAdapter extends java.lang.Object implements CustomObjectService
Constructor and Description |
---|
CustomObjectServiceAdapter(CustomObjectService service) |
Modifier and Type | Method and Description |
---|---|
DeleteRequest<CustomObject> |
delete(java.lang.String container,
java.lang.String key)
Deletes the object identified by container and key.
|
FetchRequest<CustomObject> |
get(java.lang.String container,
java.lang.String key)
Finds a custom object by container and key.
|
<T> play.libs.F.Promise<SphereResult<CustomObject>> |
set(java.lang.String container,
java.lang.String key,
T value)
Sets the the custom object identified by container and key
Will overwrite all data that already exists under that key.
|
public CustomObjectServiceAdapter(CustomObjectService service)
public FetchRequest<CustomObject> get(java.lang.String container, java.lang.String key)
CustomObjectService
get
in interface CustomObjectService
public <T> play.libs.F.Promise<SphereResult<CustomObject>> set(java.lang.String container, java.lang.String key, T value)
CustomObjectService
set
in interface CustomObjectService
public DeleteRequest<CustomObject> delete(java.lang.String container, java.lang.String key)
CustomObjectService
delete
in interface CustomObjectService