Java Code Examples for com.netflix.loadbalancer.ServerStats#decrementOpenConnectionsCount()
The following examples show how to use
com.netflix.loadbalancer.ServerStats#decrementOpenConnectionsCount() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PooledConnection.java From zuul with Apache License 2.0 | 4 votes |
public ChannelFuture close() { final ServerStats stats = getServerStats(); stats.decrementOpenConnectionsCount(); closeConnCounter.increment(); return channel.close(); }
Example 2
Source File: PooledConnection.java From zuul with Apache License 2.0 | 4 votes |
public void updateServerStats() { final ServerStats stats = getServerStats(); stats.decrementOpenConnectionsCount(); stats.close(); }