class org.apache.http.impl.execchain.ConnectionHolder implements org.apache.http.conn.ConnectionReleaseTrigger, org.apache.http.concurrent.Cancellable, java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.http.impl.execchain.ConnectionHolder
super_class: java.lang.Object
{
private final org.apache.commons.logging.Log log;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.http.conn.HttpClientConnectionManager manager;
descriptor: Lorg/apache/http/conn/HttpClientConnectionManager;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.http.HttpClientConnection managedConn;
descriptor: Lorg/apache/http/HttpClientConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean released;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean reusable;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.lang.Object state;
descriptor: Ljava/lang/Object;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile long validDuration;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.util.concurrent.TimeUnit timeUnit;
descriptor: Ljava/util/concurrent/TimeUnit;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void <init>(org.apache.commons.logging.Log, org.apache.http.conn.HttpClientConnectionManager, org.apache.http.HttpClientConnection);
descriptor: (Lorg/apache/commons/logging/Log;Lorg/apache/http/conn/HttpClientConnectionManager;Lorg/apache/http/HttpClientConnection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
2: aload 0
aload 2
putfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
3: aload 0
aload 3
putfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
4: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.apache.http.impl.execchain.ConnectionHolder.released:Ljava/util/concurrent/atomic/AtomicBoolean;
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
0 6 1 log Lorg/apache/commons/logging/Log;
0 6 2 manager Lorg/apache/http/conn/HttpClientConnectionManager;
0 6 3 managedConn Lorg/apache/http/HttpClientConnection;
MethodParameters:
Name Flags
log final
manager final
managedConn final
public boolean isReusable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.reusable:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
public void markReusable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.http.impl.execchain.ConnectionHolder.reusable:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
public void markNonReusable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.apache.http.impl.execchain.ConnectionHolder.reusable:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
public void setState(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.http.impl.execchain.ConnectionHolder.state:Ljava/lang/Object;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
0 2 1 state Ljava/lang/Object;
MethodParameters:
Name Flags
state final
public void setValidFor(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
dup
astore 4
monitorenter
1: aload 0
lload 1
putfield org.apache.http.impl.execchain.ConnectionHolder.validDuration:J
2: aload 0
aload 3
putfield org.apache.http.impl.execchain.ConnectionHolder.timeUnit:Ljava/util/concurrent/TimeUnit;
3: aload 4
monitorexit
4: goto 7
StackMap locals: org.apache.http.impl.execchain.ConnectionHolder long java.util.concurrent.TimeUnit org.apache.http.HttpClientConnection
StackMap stack: java.lang.Throwable
5: aload 4
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
0 8 1 duration J
0 8 3 timeUnit Ljava/util/concurrent/TimeUnit;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
duration final
timeUnit final
private void releaseConnection(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.released:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 28
1: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
dup
astore 2
monitorenter
2: iload 1
ifeq 7
3: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
4: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.state:Ljava/lang/Object;
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.validDuration:J
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.timeUnit:Ljava/util/concurrent/TimeUnit;
5: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
6: goto 24
7: StackMap locals: org.apache.http.HttpClientConnection
StackMap stack:
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
invokeinterface org.apache.http.HttpClientConnection.close:()V
8: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
ldc "Connection discarded"
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
9: goto 21
StackMap locals:
StackMap stack: java.io.IOException
10: astore 3
start local 3 11: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 13
12: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
aload 3
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 3
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 3 13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
14: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
15: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
goto 24
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
17: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
18: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
19: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
20: aload 4
athrow
21: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
22: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
23: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
24: StackMap locals:
StackMap stack:
aload 2
monitorexit
25: goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
26: aload 2
monitorexit
27: athrow
28: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
0 29 1 reusable Z
11 13 3 ex Ljava/io/IOException;
Exception table:
from to target type
7 9 10 Class java.io.IOException
7 13 16 any
2 25 26 any
26 27 26 any
MethodParameters:
Name Flags
reusable final
public void releaseConnection();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.reusable:Z
invokevirtual org.apache.http.impl.execchain.ConnectionHolder.releaseConnection:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
public void abortConnection();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.released:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 23
1: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
dup
astore 1
monitorenter
2: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
invokeinterface org.apache.http.HttpClientConnection.shutdown:()V
3: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
ldc "Connection discarded"
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
4: goto 16
StackMap locals: org.apache.http.impl.execchain.ConnectionHolder org.apache.http.HttpClientConnection
StackMap stack: java.io.IOException
5: astore 2
start local 2 6: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 8
7: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 2
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
9: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
10: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
goto 19
11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
12: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
13: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
14: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
15: aload 3
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.manager:Lorg/apache/http/conn/HttpClientConnectionManager;
17: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.managedConn:Lorg/apache/http/HttpClientConnection;
aconst_null
lconst_0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
18: invokeinterface org.apache.http.conn.HttpClientConnectionManager.releaseConnection:(Lorg/apache/http/HttpClientConnection;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)V
19: StackMap locals:
StackMap stack:
aload 1
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 1
monitorexit
22: athrow
23: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
6 8 2 ex Ljava/io/IOException;
Exception table:
from to target type
2 4 5 Class java.io.IOException
2 8 11 any
2 20 21 any
21 22 21 any
public boolean cancel();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.released:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
istore 1
start local 1 1: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.log:Lorg/apache/commons/logging/Log;
ldc "Cancelling request execution"
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
2: aload 0
invokevirtual org.apache.http.impl.execchain.ConnectionHolder.abortConnection:()V
3: iload 1
ifeq 4
iconst_0
goto 5
StackMap locals: int
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
1 6 1 alreadyReleased Z
public boolean isReleased();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.http.impl.execchain.ConnectionHolder.released:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.apache.http.impl.execchain.ConnectionHolder.releaseConnection:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/impl/execchain/ConnectionHolder;
Exceptions:
throws java.io.IOException
}
SourceFile: "ConnectionHolder.java"
RuntimeInvisibleAnnotations:
org.apache.http.annotation.Contract(threading = org.apache.http.annotation.ThreadingBehavior.SAFE:Lorg/apache/http/annotation/ThreadingBehavior;)