public class AfterConnectionEstablished extends Object
| Modifier and Type | Method and Description |
|---|---|
static Future<?> |
execute(org.apache.curator.framework.CuratorFramework client,
Runnable runAfterConnection)
Spawns a new new background thread that will block until a connection is available and
then execute the 'runAfterConnection' logic
|
public static Future<?> execute(org.apache.curator.framework.CuratorFramework client, Runnable runAfterConnection) throws Exception
client - The curator clientrunAfterConnection - The logic to runExceptionCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.