Interface ConnectionStateListenerManagerFactory
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ConnectionStateListenerManagerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ConnectionStateListenerManagerFactorystandardPass through
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ConnectionStateListenerManagerFactorycircuitBreaking(org.apache.curator.RetryPolicy retryPolicy)Listeners set in this manager receive circuit breaking behavior usingCircuitBreakingConnectionStateListeneras a master listener that proxies to any listener registered by client code (unless the listener returns true forConnectionStateListener.doNotProxy()).static ConnectionStateListenerManagerFactorycircuitBreaking(org.apache.curator.RetryPolicy retryPolicy, java.util.concurrent.ScheduledExecutorService service)Listeners set in this manager receive circuit breaking behavior usingCircuitBreakingConnectionStateListeneras a master listener that proxies to any listener registered by client code (unless the listener returns true forConnectionStateListener.doNotProxy()).UnaryListenerManager<ConnectionStateListener>newManager(CuratorFramework client)Create a new listener manager
-
-
-
Field Detail
-
standard
static final ConnectionStateListenerManagerFactory standard
Pass through
-
-
Method Detail
-
newManager
UnaryListenerManager<ConnectionStateListener> newManager(CuratorFramework client)
Create a new listener manager- Parameters:
client- curator client- Returns:
- manager
-
circuitBreaking
static ConnectionStateListenerManagerFactory circuitBreaking(org.apache.curator.RetryPolicy retryPolicy)
Listeners set in this manager receive circuit breaking behavior usingCircuitBreakingConnectionStateListeneras a master listener that proxies to any listener registered by client code (unless the listener returns true forConnectionStateListener.doNotProxy()).- Parameters:
retryPolicy- the circuit breaking policy to use- Returns:
- new listener manager factory
-
circuitBreaking
static ConnectionStateListenerManagerFactory circuitBreaking(org.apache.curator.RetryPolicy retryPolicy, java.util.concurrent.ScheduledExecutorService service)
Listeners set in this manager receive circuit breaking behavior usingCircuitBreakingConnectionStateListeneras a master listener that proxies to any listener registered by client code (unless the listener returns true forConnectionStateListener.doNotProxy()).- Parameters:
retryPolicy- the circuit breaking policy to useservice- the scheduler to use- Returns:
- new listener manager factory
-
-