| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConnPoolListener | |
| private volatile int | |
| private final DisposalCallback | |
| private final AtomicBoolean | |
| private final PoolReusePolicy | |
| private final ConcurrentMap | |
| private final TimeValue |
| Access | Constructor and Description |
|---|---|
| public | LaxConnPool(final int defaultMaxPerRoute, final TimeValue timeToLive, final PoolReusePolicy policy, final DisposalCallback<C> disposalCallback, final ConnPoolListener<T> connPoolListener)
|
| public | LaxConnPool(final int defaultMaxPerRoute, final TimeValue timeToLive, final PoolReusePolicy policy, final ConnPoolListener<T> connPoolListener)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close(final CloseMode
How to close the receiver. closeMode)Implements org. |
| public void | close()
Implements java. |
| public void | |
| public void | |
| public void | |
| public void | |
| public int | |
| public int | |
| public int | |
| private LaxConnPool. | |
| public Set | |
| public PoolStats | |
| public PoolStats | |
| public boolean | |
| public Future | lease(final T
route of the connection. route, final Object arbitrary object that represents a particular state
(usually a security principal or a unique token identifying
the user whose credentials have been used while establishing the connection).
May be state, final Timeout null.request timeout. In case of a timeout the request
can get automatically cancelled by the pool. requestTimeout, final FutureCallback<PoolEntry<T, C>> operation completion callback. callback)Implements org. |
| public Future | |
| public void | release(final PoolEntry<T, C>
pool entry leased from the pool entry, final boolean flag indicating whether or not the released connection
is in a consistent state and is safe for further use. reusable)Implements org. |
| public void | setDefaultMaxPerRoute(final int max)
Implements org. |
| public void | setMaxPerRoute(final T route, final int max)
Implements org. |
| public void | |
| public String | |
| public void |
| connPoolListener | back to summary |
|---|---|
| private final ConnPoolListener<T> connPoolListener | |
| defaultMaxPerRoute | back to summary |
|---|---|
| private volatile int defaultMaxPerRoute | |
| disposalCallback | back to summary |
|---|---|
| private final DisposalCallback<C> disposalCallback | |
| isShutDown | back to summary |
|---|---|
| private final AtomicBoolean isShutDown | |
| policy | back to summary |
|---|---|
| private final PoolReusePolicy policy | |
| routeToPool | back to summary |
|---|---|
| private final ConcurrentMap<T, LaxConnPool. | |
| timeToLive | back to summary |
|---|---|
| private final TimeValue timeToLive | |
| LaxConnPool | back to summary |
|---|---|
public LaxConnPool(final int defaultMaxPerRoute, final TimeValue timeToLive, final PoolReusePolicy policy, final DisposalCallback<C> disposalCallback, final ConnPoolListener<T> connPoolListener)
| |
| LaxConnPool | back to summary |
|---|---|
public LaxConnPool(final int defaultMaxPerRoute, final TimeValue timeToLive, final PoolReusePolicy policy, final ConnPoolListener<T> connPoolListener)
| |
| LaxConnPool | back to summary |
|---|---|
| public LaxConnPool(final int defaultMaxPerRoute) | |
| close | back to summary |
|---|---|
| public void close(final CloseMode closeMode) Implements org. Doc from org. Closes this process or endpoint and releases any system resources associated with it. If the endpoint or the process is already closed then invoking this method has no effect. | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| closeExpired | back to summary |
|---|---|
| public void closeExpired() Implements org.
| |
| closeIdle | back to summary |
|---|---|
| public void closeIdle(final TimeValue idleTime) Implements org.
| |
| enumAvailable | back to summary |
|---|---|
| public void enumAvailable(final Callback<PoolEntry<T, C>> callback) | |
| enumLeased | back to summary |
|---|---|
| public void enumLeased(final Callback<PoolEntry<T, C>> callback) | |
| getDefaultMaxPerRoute | back to summary |
|---|---|
| public int getDefaultMaxPerRoute() Implements org.
| |
| getMaxPerRoute | back to summary |
|---|---|
| public int getMaxPerRoute(final T route) Implements org.
| |
| getMaxTotal | back to summary |
|---|---|
| public int getMaxTotal() Implements org.
| |
| getPool | back to summary |
|---|---|
| private LaxConnPool. | |
| getRoutes | back to summary |
|---|---|
| public Set Implements org.
| |
| getStats | back to summary |
|---|---|
| public PoolStats getStats(final T route) Implements org.
| |
| getTotalStats | back to summary |
|---|---|
| public PoolStats getTotalStats() Implements org.
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() | |
| lease | back to summary |
|---|---|
| public Future Implements org. Doc from org. Attempts to lease a connection for the given route and with the given state from the pool. Please note the connection request can get automatically cancelled by the pool in case of a request timeout.
| |
| lease | back to summary |
|---|---|
| public Future | |
| release | back to summary |
|---|---|
| public void release(final PoolEntry<T, C> entry, final boolean reusable) Implements org. Doc from org. Releases the pool entry back to the pool. | |
| setDefaultMaxPerRoute | back to summary |
|---|---|
| public void setDefaultMaxPerRoute(final int max) Implements org.
| |
| setMaxPerRoute | back to summary |
|---|---|
| public void setMaxPerRoute(final T route, final int max) Implements org.
| |
| setMaxTotal | back to summary |
|---|---|
| public void setMaxTotal(final int max) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validatePendingRequests | back to summary |
|---|---|
| public void validatePendingRequests() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Deadline | |
| private final BasicFuture | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv | LeaseRequest(final Object state, final Timeout requestTimeout, final BasicFuture<PoolEntry<T, C>> future)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel()
Implements org. |
| public boolean | |
| public boolean | |
| public Deadline | |
| pack-priv BasicFuture | |
| public Object | |
| public boolean |
| deadline | back to summary |
|---|---|
| private final Deadline deadline | |
| future | back to summary |
|---|---|
| private final BasicFuture<PoolEntry<T, C>> future | |
| state | back to summary |
|---|---|
| private final Object state | |
| LeaseRequest | back to summary |
|---|---|
| pack-priv LeaseRequest(final Object state, final Timeout requestTimeout, final BasicFuture<PoolEntry<T, C>> future) | |
| cancel | back to summary |
|---|---|
| public boolean cancel() Implements org. Doc from org. Cancels the ongoing operation or process.
| |
| completed | back to summary |
|---|---|
| public boolean completed(final PoolEntry<T, C> result) | |
| failed | back to summary |
|---|---|
| public boolean failed(final Exception ex) | |
| getDeadline | back to summary |
|---|---|
| public Deadline getDeadline() | |
| getFuture | back to summary |
|---|---|
| pack-priv BasicFuture | |
| getState | back to summary |
|---|---|
| public Object getState() | |
| isDone | back to summary |
|---|---|
| public boolean isDone() | |
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger | |
| private final Deque | |
| private final ConnPoolListener | |
| private final ConnPoolStats | |
| private final DisposalCallback | |
| private final ConcurrentMap | |
| private volatile int | |
| private final Deque | |
| private final PoolReusePolicy | |
| private final AtomicLong | |
| private final T | |
| private final AtomicBoolean | |
| private final TimeValue |
| Access | Constructor and Description |
|---|---|
| pack-priv | PerRoutePool(final T route, final int max, final TimeValue timeToLive, final PoolReusePolicy policy, final ConnPoolStats<T> connPoolStats, final DisposalCallback<C> disposalCallback, final ConnPoolListener<T> connPoolListener)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private PoolEntry | |
| private void | |
| public void | |
| public void | |
| public int | |
| private PoolEntry | |
| public int | |
| public int | |
| public int | |
| public final T | |
| public Future | lease(final Object state, final Timeout requestTimeout, final FutureCallback<PoolEntry<T, C>> callback)
|
| public void | |
| private void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public String | |
| public void |
| allocated | back to summary |
|---|---|
| private final AtomicInteger allocated | |
| available | back to summary |
|---|---|
| private final Deque<AtomicMarkableReference<PoolEntry<T, C>>> available | |
| connPoolListener | back to summary |
|---|---|
| private final ConnPoolListener<T> connPoolListener | |
| connPoolStats | back to summary |
|---|---|
| private final ConnPoolStats<T> connPoolStats | |
| disposalCallback | back to summary |
|---|---|
| private final DisposalCallback<C> disposalCallback | |
| leased | back to summary |
|---|---|
| private final ConcurrentMap<PoolEntry<T, C>, Boolean> leased | |
| max | back to summary |
|---|---|
| private volatile int max | |
| pending | back to summary |
|---|---|
| private final Deque<LaxConnPool. | |
| policy | back to summary |
|---|---|
| private final PoolReusePolicy policy | |
| releaseSeqNum | back to summary |
|---|---|
| private final AtomicLong releaseSeqNum | |
| route | back to summary |
|---|---|
| private final T route | |
| terminated | back to summary |
|---|---|
| private final AtomicBoolean terminated | |
| timeToLive | back to summary |
|---|---|
| private final TimeValue timeToLive | |
| PerRoutePool | back to summary |
|---|---|
| pack-priv PerRoutePool(final T route, final int max, final TimeValue timeToLive, final PoolReusePolicy policy, final ConnPoolStats<T> connPoolStats, final DisposalCallback<C> disposalCallback, final ConnPoolListener<T> connPoolListener) | |
| addLeased | back to summary |
|---|---|
| private void addLeased(final PoolEntry<T, C> entry) | |
| createPoolEntry | back to summary |
|---|---|
| private PoolEntry | |
| deallocatePoolEntry | back to summary |
|---|---|
| private void deallocatePoolEntry() | |
| enumAvailable | back to summary |
|---|---|
| public void enumAvailable(final Callback<PoolEntry<T, C>> callback) | |
| enumLeased | back to summary |
|---|---|
| public void enumLeased(final Callback<PoolEntry<T, C>> callback) | |
| getAvailableCount | back to summary |
|---|---|
| public int getAvailableCount() | |
| getAvailableEntry | back to summary |
|---|---|
| private PoolEntry | |
| getLeasedCount | back to summary |
|---|---|
| public int getLeasedCount() | |
| getMax | back to summary |
|---|---|
| public int getMax() | |
| getPendingCount | back to summary |
|---|---|
| public int getPendingCount() | |
| getRoute | back to summary |
|---|---|
| public final T getRoute() | |
| lease | back to summary |
|---|---|
| public Future | |
| release | back to summary |
|---|---|
| public void release(final PoolEntry<T, C> releasedEntry, final boolean reusable) | |
| removeLeased | back to summary |
|---|---|
| private void removeLeased(final PoolEntry<T, C> entry) | |
| servicePendingRequest | back to summary |
|---|---|
| private void servicePendingRequest() | |
| servicePendingRequests | back to summary |
|---|---|
| private void servicePendingRequests(final LaxConnPool. | |
| setMax | back to summary |
|---|---|
| public void setMax(final int max) | |
| shutdown | back to summary |
|---|---|
| public void shutdown(final CloseMode closeMode) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validatePendingRequests | back to summary |
|---|---|
| public void validatePendingRequests() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final LaxConnPool. | |
| public static final LaxConnPool. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LaxConnPool. | |
| public static LaxConnPool. |
| ALL | back to summary |
|---|---|
| public static final LaxConnPool. | |
| FIRST_SUCCESSFUL | back to summary |
|---|---|
| public static final LaxConnPool. | |
| RequestServiceStrategy | back to summary |
|---|---|
| private RequestServiceStrategy() | |
| valueOf | back to summary |
|---|---|
| public static LaxConnPool. | |
| values | back to summary |
|---|---|
| public static LaxConnPool. | |