|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BaseMemcacheService
Methods that are common between MemcacheService
and
AsyncMemcacheService
.
Method Summary | |
---|---|
ErrorHandler |
getErrorHandler()
Fetches the current error handler. |
java.lang.String |
getNamespace()
Method returns non-null value if the MemcacheService overrides the default namespace in API calls. |
void |
setErrorHandler(ErrorHandler handler)
Registers a new ErrorHandler . |
Method Detail |
---|
java.lang.String getNamespace()
NamespaceManager.get()
.
null
if the MemcacheService uses default namespace in
API calls. Otherwise it returns namespace
which is overrides
default namespace on the API calls.ErrorHandler getErrorHandler()
void setErrorHandler(ErrorHandler handler)
ErrorHandler
. The handler
is called
for errors which are not the application's fault, like a network timeout.
The handler can choose to propagate the error or suppress it.
Errors which are caused by an incorrect use of the API will not be
directed to the handler
but rather will be thrown directly.
handler
- the new ErrorHandler
to use
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |