}
@Override
public void performBackgroundOperation(final OperationAndData<PathAndBytes> operationAndData) throws Exception
{
final TimeTrace trace = client.getZookeeperClient().startTracer("SetDataBuilderImpl-Background");
client.getZooKeeper().setData
(
operationAndData.getData().getPath(),
operationAndData.getData().getData(),
version,
new AsyncCallback.StatCallback()
{
@SuppressWarnings({"unchecked"})
@Override
public void processResult(int rc, String path, Object ctx, Stat stat)
{
trace.commit();
CuratorEvent event = new CuratorEventImpl(client, CuratorEventType.SET_DATA, rc, path, null, ctx, stat, null, null, null, null);
client.processBackgroundOperation(operationAndData, event);
}
},
backgrounding.getContext()