public class Compatibility extends Object
| Constructor and Description |
|---|
Compatibility() |
| Modifier and Type | Method and Description |
|---|---|
static void |
injectSessionExpiration(org.apache.zookeeper.ZooKeeper zooKeeper)
For ZooKeeper 3.5.x, use the supported
zooKeeper.getTestable().injectSessionExpiration(). |
static boolean |
isZK34()
Return true if the classpath ZooKeeper library is 3.4.x
|
public static boolean isZK34()
public static void injectSessionExpiration(org.apache.zookeeper.ZooKeeper zooKeeper)
zooKeeper.getTestable().injectSessionExpiration().
For ZooKeeper 3.4.x do the equivalent via reflectionzooKeeper - clientCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.