File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
providers/netty/src/main/java/org/asynchttpclient/providers/netty/channel Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,34 +27,34 @@ public interface ChannelPool {
27
27
* @param connection an I/O connection
28
28
* @return true if added.
29
29
*/
30
- public boolean offer (String uri , Channel connection );
30
+ boolean offer (String uri , Channel connection );
31
31
32
32
/**
33
33
* Remove the connection associated with the uri.
34
34
*
35
35
* @param uri the uri used when invoking addConnection
36
36
* @return the connection associated with the uri
37
37
*/
38
- public Channel poll (String uri );
38
+ Channel poll (String uri );
39
39
40
40
/**
41
41
* Remove all connections from the cache. A connection might have been associated with several uri.
42
42
*
43
43
* @param connection a connection
44
44
* @return the true if the connection has been removed
45
45
*/
46
- public boolean removeAll (Channel connection );
46
+ boolean removeAll (Channel connection );
47
47
48
48
/**
49
49
* Return true if a connection can be cached. A implementation can decide based on some rules to allow caching
50
50
* Calling this method is equivalent of checking the returned value of {@link ChannelPool#offer(Object, Object)}
51
51
*
52
52
* @return true if a connection can be cached.
53
53
*/
54
- public boolean canCacheConnection ();
54
+ boolean canCacheConnection ();
55
55
56
56
/**
57
57
* Destroy all connections that has been cached by this instance.
58
58
*/
59
- public void destroy ();
59
+ void destroy ();
60
60
}
You can’t perform that action at this time.
0 commit comments