Modifier and Type | Method and Description |
---|---|
static ZKClient |
namespace(ZKClient zkClient,
String namespace)
Creates a
ZKClient that will add prefix namespace for every paths. |
static ZKClient |
retryOnFailure(ZKClient client,
RetryStrategy retryStrategy)
Creates a
ZKClient that will retry interim failure (e.g. |
static ZKClient |
reWatchOnExpire(ZKClient client)
Creates a
ZKClient that will perform auto re-watch on all existing watches
when reconnection happens after session expiration. |
public static ZKClient retryOnFailure(ZKClient client, RetryStrategy retryStrategy)
ZKClient
that will retry interim failure (e.g. connection loss, session expiration)
based on the given RetryStrategy
.client
- The ZKClient
for operations delegation.retryStrategy
- The RetryStrategy
to be invoke when there is operation failure.ZKClient
.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.