public class TextCommandServiceImpl extends Object implements TextCommandService, TextCommandConstants
TextCommandConstants.TextCommandType
CLIENT_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 TextCommandService
public Stats getStats()
getStats
in interface TextCommandService
public long incrementDeleteCount()
incrementDeleteCount
in interface TextCommandService
public long incrementGetCount()
incrementGetCount
in interface TextCommandService
public long incrementSetCount()
incrementSetCount
in interface TextCommandService
public long incrementHitCount()
incrementHitCount
in interface TextCommandService
public void processRequest(TextCommand command)
processRequest
in interface TextCommandService
public Object get(String mapName, String key)
get
in interface TextCommandService
public int getAdjustedTTLSeconds(int ttl)
getAdjustedTTLSeconds
in interface TextCommandService
public byte[] getByteArray(String mapName, String key)
getByteArray
in interface TextCommandService
public Object put(String mapName, String key, Object value, int ttlSeconds)
put
in interface TextCommandService
public Object putIfAbsent(String mapName, String key, Object value, int ttlSeconds)
putIfAbsent
in interface TextCommandService
public Object replace(String mapName, String key, Object value)
replace
in interface TextCommandService
public Object delete(String mapName, String key)
delete
in interface TextCommandService
public boolean offer(String queueName, Object value)
offer
in interface TextCommandService
public Object poll(String queueName, int seconds)
poll
in interface TextCommandService
public Object poll(String queueName)
poll
in interface TextCommandService
public void sendResponse(TextCommand textCommand)
sendResponse
in interface TextCommandService
public void stop()
Copyright © 2013 Hazelcast, Inc.. All rights reserved.