public class DefaultRpcMapService extends Object implements RpcMapService, LambdaLogger
Constructor and Description |
---|
DefaultRpcMapService() |
Modifier and Type | Method and Description |
---|---|
Logger |
log() |
<K,V> void |
mapClear(String name) |
<K,V> Map<K,V> |
mapCreate(String name) |
<K,V> void |
mapPut(String name,
DataHolder<K> k,
DataHolder<V> v) |
<K,V> void |
mapPutAll(String name,
Map<DataHolder<K>,DataHolder<V>> m) |
<K,V> DataHolder<V> |
mapPutIfAbsent(String name,
DataHolder<K> k,
DataHolder<V> v) |
<K,V> DataHolder<V> |
mapRemove(String name,
DataHolder<K> k) |
<K,V> boolean |
mapRemoveIfPresent(String name,
DataHolder<K> k,
DataHolder<V> v) |
<K,V> DataHolder<V> |
mapReplace(String name,
DataHolder<K> k,
DataHolder<V> v) |
<K,V> boolean |
mapReplaceIfPresent(String name,
DataHolder<K> k,
DataHolder<V> oldValue,
DataHolder<V> newValue) |
void |
readFrom(InputStream input) |
void |
writeTo(OutputStream output) |
public <K,V> Map<K,V> mapCreate(String name)
mapCreate
in interface RpcMapService
public <K,V> void mapPut(String name, DataHolder<K> k, DataHolder<V> v)
mapPut
in interface RpcMapService
public <K,V> DataHolder<V> mapPutIfAbsent(String name, DataHolder<K> k, DataHolder<V> v)
mapPutIfAbsent
in interface RpcMapService
public <K,V> DataHolder<V> mapRemove(String name, DataHolder<K> k)
mapRemove
in interface RpcMapService
public <K,V> boolean mapRemoveIfPresent(String name, DataHolder<K> k, DataHolder<V> v)
mapRemoveIfPresent
in interface RpcMapService
public <K,V> DataHolder<V> mapReplace(String name, DataHolder<K> k, DataHolder<V> v)
mapReplace
in interface RpcMapService
public <K,V> boolean mapReplaceIfPresent(String name, DataHolder<K> k, DataHolder<V> oldValue, DataHolder<V> newValue)
mapReplaceIfPresent
in interface RpcMapService
public <K,V> void mapClear(String name)
mapClear
in interface RpcMapService
public <K,V> void mapPutAll(String name, Map<DataHolder<K>,DataHolder<V>> m)
mapPutAll
in interface RpcMapService
public void writeTo(OutputStream output) throws IOException
writeTo
in interface RpcMapService
IOException
public void readFrom(InputStream input) throws IOException, ClassNotFoundException
readFrom
in interface RpcMapService
IOException
ClassNotFoundException
public Logger log()
log
in interface LambdaLogger
Copyright © 2015. All rights reserved.