public class AfterConnectionEstablished extends Object
Modifier and Type | Method and Description |
---|---|
static Future<?> |
execute(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(CuratorFramework client, Runnable runAfterConnection) throws Exception
client
- The curator clientrunAfterConnection
- The logic to runException
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.