public interface BackPressureStrategy<S extends BackPressureState>
Map<String, Object>
argument,
representing any parameters eventually required by the specific implementation.Modifier and Type | Method and Description |
---|---|
void |
apply(java.util.Set<S> states,
long timeout,
java.util.concurrent.TimeUnit unit)
Applies the back-pressure algorithm, based and acting on the given
BackPressureState s, and up to the given
timeout. |
S |
newState(java.net.InetAddress host)
Creates a new
BackPressureState initialized as needed by the specific implementation. |
void apply(java.util.Set<S> states, long timeout, java.util.concurrent.TimeUnit unit)
BackPressureState
s, and up to the given
timeout.S newState(java.net.InetAddress host)
BackPressureState
initialized as needed by the specific implementation.Copyright © 2009- The Apache Software Foundation