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.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncircuitBreaking(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()).circuitBreaking(org.apache.curator.RetryPolicy retryPolicy, 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()).newManager(CuratorFramework client) Create a new listener manager
-
Field Details
-
standard
Pass through
-
-
Method Details
-
newManager
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, 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
-