public class TextCommandServiceImpl extends Object implements TextCommandService, TextCommandConstants
TextCommandConstants.TextCommandTypeCLIENT_ERROR, DELETED, END, ERROR, FLAG_ZERO, MONTH_SECONDS, NOT_FOUND, NOT_STORED, RETURN, RETURN_END, SERVER_ERROR, SPACE, STORED, VALUE_SPACE| Constructor and Description |
|---|
TextCommandServiceImpl(Node node) |
| Modifier and Type | Method and Description |
|---|---|
Object |
delete(String mapName,
String key) |
Object |
get(String mapName,
String key) |
int |
getAdjustedTTLSeconds(int ttl) |
byte[] |
getByteArray(String mapName,
String key) |
Node |
getNode() |
Stats |
getStats() |
long |
incrementDeleteCount() |
long |
incrementGetCount() |
long |
incrementHitCount() |
long |
incrementSetCount() |
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,
int ttlSeconds) |
Object |
putIfAbsent(String mapName,
String key,
Object value,
int ttlSeconds) |
Object |
replace(String mapName,
String key,
Object value) |
void |
sendResponse(TextCommand textCommand) |
void |
stop() |
public TextCommandServiceImpl(Node node)
public Node getNode()
getNode in interface TextCommandServicepublic Stats getStats()
getStats in interface TextCommandServicepublic long incrementDeleteCount()
incrementDeleteCount in interface TextCommandServicepublic long incrementGetCount()
incrementGetCount in interface TextCommandServicepublic long incrementSetCount()
incrementSetCount in interface TextCommandServicepublic long incrementHitCount()
incrementHitCount 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, 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 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 void sendResponse(TextCommand textCommand)
sendResponse in interface TextCommandServicepublic void stop()
Copyright © 2013 Hazelcast, Inc.. All rights reserved.