io.leopard.data4j.pubsub
Class PubSubRsyncImpl

java.lang.Object
  extended by io.leopard.data4j.pubsub.PubSubRsyncImpl
All Implemented Interfaces:
MemdbRsyncQueue, IPubSub

public abstract class PubSubRsyncImpl
extends java.lang.Object
implements IPubSub, MemdbRsyncQueue


Field Summary
protected  MemdbRsyncService memdbRsyncService
           
 
Fields inherited from interface io.leopard.data4j.memdb.MemdbRsyncQueue
TYPE_REMOVE, TYPE_SET
 
Constructor Summary
PubSubRsyncImpl(Redis redis, java.lang.String channel)
           
 
Method Summary
 boolean add(java.lang.String type, java.lang.String key, java.lang.String value, boolean isMySelf)
           
 void destroy()
           
 void init()
           
 boolean publish(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.leopard.data4j.pubsub.IPubSub
subscribe
 

Field Detail

memdbRsyncService

protected MemdbRsyncService memdbRsyncService
Constructor Detail

PubSubRsyncImpl

public PubSubRsyncImpl(Redis redis,
                       java.lang.String channel)
Method Detail

init

public void init()
Specified by:
init in interface MemdbRsyncQueue

destroy

public void destroy()
Specified by:
destroy in interface MemdbRsyncQueue

publish

public boolean publish(java.lang.String message)

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.