public static class ConnectionThrottle.Builder extends Object
Constructor and Description |
---|
ConnectionThrottle.Builder() |
Modifier and Type | Method and Description |
---|---|
ConnectionThrottle |
build() |
ConnectionThrottle.Builder |
from(ConnectionThrottle in) |
ConnectionThrottle.Builder |
maxConnectionRate(int maxConnectionRate)
Maximum number of connections allowed from a single IP address in the defined rateInterval.
|
ConnectionThrottle.Builder |
maxConnections(int maxConnections)
Maximum number of connections to allow for a single IP address.
|
ConnectionThrottle.Builder |
minConnections(int minConnections)
Allow at least this number of connections per IP address before applying throttling restrictions.
|
ConnectionThrottle.Builder |
rateInterval(int rateInterval)
Frequency (in seconds) at which the maxConnectionRate is assessed.
|
public ConnectionThrottle.Builder maxConnections(int maxConnections)
public ConnectionThrottle.Builder minConnections(int minConnections)
public ConnectionThrottle.Builder maxConnectionRate(int maxConnectionRate)
public ConnectionThrottle.Builder rateInterval(int rateInterval)
public ConnectionThrottle build()
public ConnectionThrottle.Builder from(ConnectionThrottle in)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.