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 TextCommandService
public byte[] toByteArray(Object value)
toByteArray
in interface TextCommandService
public Stats getStats()
getStats
in interface TextCommandService
public long incrementDeleteHitCount(int inc)
incrementDeleteHitCount
in interface TextCommandService
public long incrementDeleteMissCount()
incrementDeleteMissCount
in interface TextCommandService
public long incrementGetHitCount()
incrementGetHitCount
in interface TextCommandService
public long incrementGetMissCount()
incrementGetMissCount
in interface TextCommandService
public long incrementSetCount()
incrementSetCount
in interface TextCommandService
public long incrementIncHitCount()
incrementIncHitCount
in interface TextCommandService
public long incrementIncMissCount()
incrementIncMissCount
in interface TextCommandService
public long incrementDecrHitCount()
incrementDecrHitCount
in interface TextCommandService
public long incrementDecrMissCount()
incrementDecrMissCount
in interface TextCommandService
public long incrementTouchCount()
incrementTouchCount
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)
put
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 void lock(String mapName, String key) throws InterruptedException
lock
in interface TextCommandService
InterruptedException
public void unlock(String mapName, String key)
unlock
in interface TextCommandService
public void deleteAll(String mapName)
deleteAll
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 int size(String queueName)
TextCommandService
size
in interface TextCommandService
queueName
- name of the distributed queuepublic void sendResponse(TextCommand textCommand)
sendResponse
in interface TextCommandService
public void stop()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.