final class org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool<T> implements org.apache.commons.pool2.ObjectPool<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool
super_class: java.lang.Object
{
private final java.util.concurrent.locks.ReentrantReadWriteLock readWriteLock;
descriptor: Ljava/util/concurrent/locks/ReentrantReadWriteLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.commons.pool2.ObjectPool<T> pool;
descriptor: Lorg/apache/commons/pool2/ObjectPool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/commons/pool2/ObjectPool<TT;>;
void <init>(org.apache.commons.pool2.ObjectPool<T>);
descriptor: (Lorg/apache/commons/pool2/ObjectPool;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.locks.ReentrantReadWriteLock
dup
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:()V
putfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
2: aload 1
ifnonnull 4
3: new java.lang.IllegalArgumentException
dup
ldc "pool must not be null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool org.apache.commons.pool2.ObjectPool
StackMap stack:
aload 0
aload 1
putfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
0 6 1 pool Lorg/apache/commons/pool2/ObjectPool<TT;>;
Exceptions:
throws java.lang.IllegalArgumentException
Signature: (Lorg/apache/commons/pool2/ObjectPool<TT;>;)V
MethodParameters:
Name Flags
pool final
public T borrowObject();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokeinterface org.apache.commons.pool2.ObjectPool.borrowObject:()Ljava/lang/Object;
astore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
4: aload 3
areturn
5: StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 8 1 writeLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
Exception table:
from to target type
2 3 5 any
Exceptions:
throws java.lang.Exception, java.util.NoSuchElementException, java.lang.IllegalStateException
Signature: ()TT;
public void returnObject();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
aload 1
invokeinterface org.apache.commons.pool2.ObjectPool.returnObject:(Ljava/lang/Object;)V
3: goto 9
StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.lang.Object java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock
StackMap stack: java.lang.Exception
4: pop
5: aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
goto 10
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
7: aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
8: aload 3
athrow
9: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
0 11 1 obj TT;
1 11 2 writeLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
2 5 6 any
Signature: (TT;)V
MethodParameters:
Name Flags
obj final
public void invalidateObject();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 2
start local 2 1: aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
aload 1
invokeinterface org.apache.commons.pool2.ObjectPool.invalidateObject:(Ljava/lang/Object;)V
3: goto 9
StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.lang.Object java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock
StackMap stack: java.lang.Exception
4: pop
5: aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
goto 10
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
7: aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
8: aload 3
athrow
9: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
0 11 1 obj TT;
1 11 2 writeLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
2 5 6 any
Signature: (TT;)V
MethodParameters:
Name Flags
obj final
public void addObject();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokeinterface org.apache.commons.pool2.ObjectPool.addObject:()V
3: goto 7
StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock
StackMap stack: java.lang.Throwable
4: astore 2
5: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
6: aload 2
athrow
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 9 1 writeLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
Exception table:
from to target type
2 4 4 any
Exceptions:
throws java.lang.Exception, java.lang.IllegalStateException, java.lang.UnsupportedOperationException
public int getNumIdle();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.readLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokeinterface org.apache.commons.pool2.ObjectPool.getNumIdle:()I
istore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock:()V
4: iload 3
ireturn
5: StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 8 1 readLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
Exception table:
from to target type
2 3 5 any
public int getNumActive();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.readLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokeinterface org.apache.commons.pool2.ObjectPool.getNumActive:()I
istore 3
3: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock:()V
4: iload 3
ireturn
5: StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 8 1 readLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
Exception table:
from to target type
2 3 5 any
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokeinterface org.apache.commons.pool2.ObjectPool.clear:()V
3: goto 7
StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock
StackMap stack: java.lang.Throwable
4: astore 2
5: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
6: aload 2
athrow
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 9 1 writeLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
Exception table:
from to target type
2 4 4 any
Exceptions:
throws java.lang.Exception, java.lang.UnsupportedOperationException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.readWriteLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
astore 1
start local 1 1: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock:()V
2: aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokeinterface org.apache.commons.pool2.ObjectPool.close:()V
3: goto 9
StackMap locals: org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock
StackMap stack: java.lang.Exception
4: pop
5: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
goto 10
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
8: aload 2
athrow
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock:()V
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 11 1 writeLock Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
2 5 6 any
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "SynchronizedObjectPool"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
ldc "{pool="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool.pool:Lorg/apache/commons/pool2/ObjectPool;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
3: aload 1
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
4: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/commons/pool2/PoolUtils$SynchronizedObjectPool<TT;>;
1 5 1 sb Ljava/lang/StringBuilder;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/commons/pool2/ObjectPool<TT;>;
SourceFile: "PoolUtils.java"
NestHost: org.apache.commons.pool2.PoolUtils
InnerClasses:
public ReadLock = java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock of java.util.concurrent.locks.ReentrantReadWriteLock
public WriteLock = java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock of java.util.concurrent.locks.ReentrantReadWriteLock
private final SynchronizedObjectPool = org.apache.commons.pool2.PoolUtils$SynchronizedObjectPool of org.apache.commons.pool2.PoolUtils