메소드 | 설명 | |
---|---|---|
Process ( ZooKeeperNet.WatchedEvent e ) : void |
Processes ZooKeeper event Requires installed watcher |
|
Subscribe ( IZooKeeperStateListener listener ) : void |
Subscribes listeners on ZooKeeper state changes events
|
|
Subscribe ( string path, IZooKeeperChildListener listener ) : void |
Subscribes listeners on ZooKeeper child changes under given path
|
|
Subscribe ( string path, IZooKeeperDataListener listener ) : void |
Subscribes listeners on ZooKeeper data changes under given path
|
|
Unsubscribe ( IZooKeeperStateListener listener ) : void |
Un-subscribes listeners on ZooKeeper state changes events
|
|
Unsubscribe ( string path, IZooKeeperChildListener listener ) : void |
Un-subscribes listeners on ZooKeeper child changes under given path
|
|
Unsubscribe ( string path, IZooKeeperDataListener listener ) : void |
Un-subscribes listeners on ZooKeeper data changes under given path
|
|
UnsubscribeAll ( ) : void |
Un-subscribes all listeners
|
|
WatchForChilds ( string path ) : IList |
Installs a child watch for the given path.
|
|
WatchForData ( string path ) : void |
Installs a data watch for the given path.
|
메소드 | 설명 | |
---|---|---|
Dequeue ( ) : void |
Dequeues event from events queue and invokes subscribed handlers
|
|
Enqueue ( |
Enqueues new event from ZooKeeper in events queue
|
|
HasListeners ( string path ) : bool |
Checks whether any data or child listeners are registered
|
|
OnChildChanged ( |
Invokes subscribed handlers for ZooKeeeper child changes event
|
|
OnDataChanged ( |
Invokes subscribed handlers for ZooKeeeper data changes event
|
|
OnSessionCreated ( |
Invokes subscribed handlers for ZooKeeeper session re-creates event
|
|
OnStateChanged ( |
Invokes subscribed handlers for ZooKeeeper state changes event
|
|
PoolEventsQueue ( ) : void |
Pools ZooKeeper events form events queue Thread sleeps if queue is empty |
|
ProcessDataOrChildChange ( ZooKeeperNet.WatchedEvent e ) : void |
Processess ZooKeeper childs or data changes events
|
|
ProcessStateChange ( ZooKeeperNet.WatchedEvent e ) : void |
Processess ZooKeeper state changes events
|
|
RunEventWorker ( ) : void |
Event thread starting method
|
public Process ( ZooKeeperNet.WatchedEvent e ) : void | ||
e | ZooKeeperNet.WatchedEvent | /// The event data. /// |
리턴 | void |
public Subscribe ( IZooKeeperStateListener listener ) : void | ||
listener | IZooKeeperStateListener | /// The listener. /// |
리턴 | void |
public Subscribe ( string path, IZooKeeperChildListener listener ) : void | ||
path | string | /// The parent path. /// |
listener | IZooKeeperChildListener | /// The listener. /// |
리턴 | void |
public Subscribe ( string path, IZooKeeperDataListener listener ) : void | ||
path | string | /// The parent path. /// |
listener | IZooKeeperDataListener | /// The listener. /// |
리턴 | void |
public Unsubscribe ( IZooKeeperStateListener listener ) : void | ||
listener | IZooKeeperStateListener | /// The listener. /// |
리턴 | void |
public Unsubscribe ( string path, IZooKeeperChildListener listener ) : void | ||
path | string | /// The parent path. /// |
listener | IZooKeeperChildListener | /// The listener. /// |
리턴 | void |
public Unsubscribe ( string path, IZooKeeperDataListener listener ) : void | ||
path | string | /// The parent path. /// |
listener | IZooKeeperDataListener | /// The listener. /// |
리턴 | void |
public WatchForChilds ( string path ) : IList |
||
path | string | /// The parent path. /// |
리턴 | IList |
public WatchForData ( string path ) : void | ||
path | string | /// The parent path. /// |
리턴 | void |