An example process synchronizer using ZooKeeper.
Coordinates timesharing of the resources among the same type of processes. Basic usage is like that:
ResourceSynchronizer rs = new ResourceSynchronizer(
new ZooKeeper(zkconnectionstring, timeout, null),
"/pool", new String[]{"res0", "res1"});
prepareData();
String myResource = rs.request();