public class TextCommandServiceImpl extends Object implements TextCommandService
Constructor and Description |
---|
TextCommandServiceImpl(Node node) |
public TextCommandServiceImpl(Node node)
protected void register(TextCommandConstants.TextCommandType type, TextCommandProcessor processor)
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 Map<String,Object> getAll(String mapName, Set<String> keys)
getAll
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()
stop
in interface TextCommandService
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.