io.leopard.data4j.memdb
Class MemdbRsyncImpl
java.lang.Object
io.leopard.data4j.memdb.MemdbImpl
io.leopard.data4j.memdb.MemdbLruImpl
io.leopard.data4j.memdb.MemdbRsyncImpl
- Type Parameters:
KEYTYPE -
- All Implemented Interfaces:
- Memdb, MemdbRsyncQueue
public class MemdbRsyncImpl
- extends MemdbLruImpl
- implements MemdbRsyncQueue
多机同步实现.
- Author:
- 阿海
|
Method Summary |
boolean |
add(java.lang.String type,
java.lang.String key,
java.lang.String value,
boolean isMySelf)
|
void |
destroy()
|
void |
init()
|
boolean |
remove(java.lang.String key)
|
boolean |
set(java.lang.String key,
java.lang.String value)
|
void |
setChannel(java.lang.String channel)
|
void |
setRedis(Redis redis)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
memdbRsyncService
protected MemdbRsyncService memdbRsyncService
MemdbRsyncImpl
public MemdbRsyncImpl(int maxSize)
setRedis
public void setRedis(Redis redis)
setChannel
public void setChannel(java.lang.String channel)
init
public void init()
- Specified by:
init in interface MemdbRsyncQueue
destroy
public void destroy()
- Specified by:
destroy in interface MemdbRsyncQueue
set
public boolean set(java.lang.String key,
java.lang.String value)
- Specified by:
set in interface Memdb- Overrides:
set in class MemdbImpl
remove
public boolean remove(java.lang.String key)
- Specified by:
remove in interface Memdb- Overrides:
remove in class MemdbImpl
add
public boolean add(java.lang.String type,
java.lang.String key,
java.lang.String value,
boolean isMySelf)
- Specified by:
add in interface MemdbRsyncQueue
Copyright © 2014-2015. All Rights Reserved.