Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit fbcc220

Browse files
committed
Remove deprecated api usage.
1 parent b8946eb commit fbcc220

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

providers/grizzly/src/main/java/com/ning/http/client/providers/grizzly/GrizzlyConnectionsPool.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.ning.http.client.ConnectionsPool;
1818

1919
import org.glassfish.grizzly.CloseListener;
20+
import org.glassfish.grizzly.CloseType;
2021
import org.glassfish.grizzly.Connection;
2122
import org.glassfish.grizzly.Grizzly;
2223
import org.glassfish.grizzly.attributes.Attribute;
@@ -73,10 +74,10 @@ public GrizzlyConnectionsPool(final AsyncHttpClientConfig config) {
7374
unlimitedConnections = (maxConnections == -1);
7475
delayedExecutor = new DelayedExecutor(Executors.newSingleThreadExecutor());
7576
delayedExecutor.start();
76-
listener = new Connection.CloseListener() {
77+
listener = new CloseListener<Connection,CloseType>() {
7778
@Override
78-
public void onClosed(Connection connection, Connection.CloseType closeType) throws IOException {
79-
if (closeType == Connection.CloseType.REMOTELY) {
79+
public void onClosed(Connection connection, CloseType closeType) throws IOException {
80+
if (closeType == CloseType.REMOTELY) {
8081
if (LOG.isInfoEnabled()) {
8182
LOG.info("Remote closed connection ({}). Removing from cache", connection.toString());
8283
}

0 commit comments

Comments
 (0)