public interface BarrierListener
| Modifier and Type | Method and Description |
|---|---|
void |
onCommit(String regionName,
String path,
byte[] remoteBytes)
Called by zookeeper clients at the same time when all are prepared for commiting something
|
void |
onDestroy(String regionName)
Called when the barrier is unregistered
|
void |
onInit(String regionName,
String path,
byte[] remoteBytes)
Called when the barrier is registered
|
void onInit(String regionName, String path, byte[] remoteBytes)
regionName - current region namepath - current data pathremoteBytes - the data of the zookeeper server. This could be null.void onCommit(String regionName, String path, byte[] remoteBytes)
regionName - current region namepath - current data pathremoteBytes - the changed data of the zookeeper servervoid onDestroy(String regionName)
regionName - current region nameCopyright © 2015 Project Grizzly. All Rights Reserved.