Package | Description |
---|---|
org.apache.twill.zookeeper |
This package provides functionality for ZooKeeper interactions.
|
Modifier and Type | Method and Description |
---|---|
ZKClientService.Builder |
ZKClientService.Builder.addAuthInfo(String schema,
byte[] auth)
Adds an authorization information.
|
static ZKClientService.Builder |
ZKClientService.Builder.of(String connectStr)
Creates a
ZKClientService.Builder with the given ZooKeeper connection string. |
ZKClientService.Builder |
ZKClientService.Builder.setConnectionWatcher(org.apache.zookeeper.Watcher watcher)
Sets a
Watcher that will be called whenever connection state change. |
ZKClientService.Builder |
ZKClientService.Builder.setSessionTimeout(int timeout)
Sets the client timeout to the give milliseconds.
|
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.