public class TextCommandServiceImpl extends Object implements TextCommandService
| Constructor and Description |
|---|
TextCommandServiceImpl(Node node) |
| Modifier and Type | Method and Description |
|---|---|
Object |
delete(String mapName,
String key) |
void |
deleteAll(String mapName) |
Object |
get(String mapName,
String key) |
int |
getAdjustedTTLSeconds(int ttl) |
byte[] |
getByteArray(String mapName,
String key) |
Node |
getNode() |
Stats |
getStats() |
long |
incrementDecrHitCount() |
long |
incrementDecrMissCount() |
long |
incrementDeleteHitCount(int inc) |
long |
incrementDeleteMissCount() |
long |
incrementGetHitCount() |
long |
incrementGetMissCount() |
long |
incrementIncHitCount() |
long |
incrementIncMissCount() |
long |
incrementSetCount() |
long |
incrementTouchCount() |
void |
lock(String mapName,
String key) |
boolean |
offer(String queueName,
Object value) |
Object |
poll(String queueName) |
Object |
poll(String queueName,
int seconds) |
void |
processRequest(TextCommand command) |
Object |
put(String mapName,
String key,
Object value) |
Object |
put(String mapName,
String key,
Object value,
int ttlSeconds) |
Object |
putIfAbsent(String mapName,
String key,
Object value,
int ttlSeconds) |
Object |
replace(String mapName,
String key,
Object value) |
void |
sendResponse(TextCommand textCommand) |
int |
size(String queueName)
Returns the size of the distributed queue instance with the specified name
|
void |
stop() |
byte[] |
toByteArray(Object value) |
void |
unlock(String mapName,
String key) |
public TextCommandServiceImpl(Node node)
public Node getNode()
getNode in interface TextCommandServicepublic byte[] toByteArray(Object value)
toByteArray in interface TextCommandServicepublic Stats getStats()
getStats in interface TextCommandServicepublic long incrementDeleteHitCount(int inc)
incrementDeleteHitCount in interface TextCommandServicepublic long incrementDeleteMissCount()
incrementDeleteMissCount in interface TextCommandServicepublic long incrementGetHitCount()
incrementGetHitCount in interface TextCommandServicepublic long incrementGetMissCount()
incrementGetMissCount in interface TextCommandServicepublic long incrementSetCount()
incrementSetCount in interface TextCommandServicepublic long incrementIncHitCount()
incrementIncHitCount in interface TextCommandServicepublic long incrementIncMissCount()
incrementIncMissCount in interface TextCommandServicepublic long incrementDecrHitCount()
incrementDecrHitCount in interface TextCommandServicepublic long incrementDecrMissCount()
incrementDecrMissCount in interface TextCommandServicepublic long incrementTouchCount()
incrementTouchCount in interface TextCommandServicepublic void processRequest(TextCommand command)
processRequest in interface TextCommandServicepublic Object get(String mapName, String key)
get in interface TextCommandServicepublic int getAdjustedTTLSeconds(int ttl)
getAdjustedTTLSeconds in interface TextCommandServicepublic byte[] getByteArray(String mapName, String key)
getByteArray in interface TextCommandServicepublic Object put(String mapName, String key, Object value)
put in interface TextCommandServicepublic Object put(String mapName, String key, Object value, int ttlSeconds)
put in interface TextCommandServicepublic Object putIfAbsent(String mapName, String key, Object value, int ttlSeconds)
putIfAbsent in interface TextCommandServicepublic Object replace(String mapName, String key, Object value)
replace in interface TextCommandServicepublic void lock(String mapName, String key) throws InterruptedException
lock in interface TextCommandServiceInterruptedExceptionpublic void unlock(String mapName, String key)
unlock in interface TextCommandServicepublic void deleteAll(String mapName)
deleteAll in interface TextCommandServicepublic Object delete(String mapName, String key)
delete in interface TextCommandServicepublic boolean offer(String queueName, Object value)
offer in interface TextCommandServicepublic Object poll(String queueName, int seconds)
poll in interface TextCommandServicepublic Object poll(String queueName)
poll in interface TextCommandServicepublic int size(String queueName)
TextCommandServicesize in interface TextCommandServicequeueName - name of the distributed queuepublic void sendResponse(TextCommand textCommand)
sendResponse in interface TextCommandServicepublic void stop()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.