public class org.eclipse.jetty.server.session.DefaultSessionCache extends org.eclipse.jetty.server.session.AbstractSessionCache
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.server.session.DefaultSessionCache
super_class: org.eclipse.jetty.server.session.AbstractSessionCache
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected java.util.concurrent.ConcurrentHashMap<java.lang.String, org.eclipse.jetty.server.session.Session> _sessions;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/lang/String;Lorg/eclipse/jetty/server/session/Session;>;
private final org.eclipse.jetty.util.statistic.CounterStatistic _stats;
descriptor: Lorg/eclipse/jetty/util/statistic/CounterStatistic;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "org.eclipse.jetty.server.session"
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/String;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.server.session.DefaultSessionCache.LOG:Lorg/eclipse/jetty/util/log/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.eclipse.jetty.server.session.SessionHandler);
descriptor: (Lorg/eclipse/jetty/server/session/SessionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.eclipse.jetty.server.session.AbstractSessionCache.<init>:(Lorg/eclipse/jetty/server/session/SessionHandler;)V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
2: aload 0
new org.eclipse.jetty.util.statistic.CounterStatistic
dup
invokespecial org.eclipse.jetty.util.statistic.CounterStatistic.<init>:()V
putfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 4 1 manager Lorg/eclipse/jetty/server/session/SessionHandler;
MethodParameters:
Name Flags
manager
public long getSessionsCurrent();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.getCurrent:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedAttribute(value = "current sessions in cache", readonly = true)
public long getSessionsMax();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.getMax:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedAttribute(value = "max sessions in cache", readonly = true)
public long getSessionsTotal();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.getTotal:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedAttribute(value = "total sessions in cache", readonly = true)
public void resetStats();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.reset:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedOperation(value = "reset statistics", impact = "ACTION")
public org.eclipse.jetty.server.session.Session doGet(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jetty/server/session/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.session.Session
astore 2
start local 2 3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 4 1 id Ljava/lang/String;
3 4 2 session Lorg/eclipse/jetty/server/session/Session;
MethodParameters:
Name Flags
id
public org.eclipse.jetty.server.session.Session doPutIfAbsent(java.lang.String, org.eclipse.jetty.server.session.Session);
descriptor: (Ljava/lang/String;Lorg/eclipse/jetty/server/session/Session;)Lorg/eclipse/jetty/server/session/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.session.Session
astore 3
start local 3 1: aload 3
ifnonnull 3
aload 2
instanceof org.eclipse.jetty.server.session.AbstractSessionCache$PlaceHolderSession
ifne 3
2: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.increment:()J
pop2
3: StackMap locals: org.eclipse.jetty.server.session.Session
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 4 1 id Ljava/lang/String;
0 4 2 session Lorg/eclipse/jetty/server/session/Session;
1 4 3 s Lorg/eclipse/jetty/server/session/Session;
MethodParameters:
Name Flags
id
session
public org.eclipse.jetty.server.session.Session doDelete(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jetty/server/session/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.eclipse.jetty.server.session.Session
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
instanceof org.eclipse.jetty.server.session.AbstractSessionCache$PlaceHolderSession
ifne 3
2: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.decrement:()J
pop2
3: StackMap locals: org.eclipse.jetty.server.session.Session
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 4 1 id Ljava/lang/String;
1 4 2 s Lorg/eclipse/jetty/server/session/Session;
MethodParameters:
Name Flags
id
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: bipush 100
istore 1
start local 1 1: goto 18
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 17
StackMap locals: org.eclipse.jetty.server.session.DefaultSessionCache int top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.eclipse.jetty.server.session.Session
astore 2
start local 2 4: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessionDataStore:Lorg/eclipse/jetty/server/session/SessionDataStore;
ifnull 13
5: aload 2
invokevirtual org.eclipse.jetty.server.session.Session.willPassivate:()V
6: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessionDataStore:Lorg/eclipse/jetty/server/session/SessionDataStore;
aload 2
invokevirtual org.eclipse.jetty.server.session.Session.getId:()Ljava/lang/String;
aload 2
invokevirtual org.eclipse.jetty.server.session.Session.getSessionData:()Lorg/eclipse/jetty/server/session/SessionData;
invokeinterface org.eclipse.jetty.server.session.SessionDataStore.store:(Ljava/lang/String;Lorg/eclipse/jetty/server/session/SessionData;)V
7: goto 10
8: StackMap locals: org.eclipse.jetty.server.session.DefaultSessionCache int org.eclipse.jetty.server.session.Session java.util.Iterator
StackMap stack: java.lang.Exception
astore 4
start local 4 9: getstatic org.eclipse.jetty.server.session.DefaultSessionCache.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 4
invokeinterface org.eclipse.jetty.util.log.Logger.warn:(Ljava/lang/Throwable;)V
end local 4 10: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.eclipse.jetty.server.session.Session.getId:()Ljava/lang/String;
invokevirtual org.eclipse.jetty.server.session.DefaultSessionCache.doDelete:(Ljava/lang/String;)Lorg/eclipse/jetty/server/session/Session;
pop
11: aload 2
iconst_0
invokevirtual org.eclipse.jetty.server.session.Session.setResident:(Z)V
12: goto 17
13: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.eclipse.jetty.server.session.Session.invalidate:()V
14: goto 17
15: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 16: getstatic org.eclipse.jetty.server.session.DefaultSessionCache.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 4
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
end local 4 end local 2 17: StackMap locals: org.eclipse.jetty.server.session.DefaultSessionCache int top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
18: StackMap locals: org.eclipse.jetty.server.session.DefaultSessionCache int
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.isEmpty:()Z
ifne 19
iload 1
iinc 1 -1
ifgt 2
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
1 20 1 loop I
4 17 2 session Lorg/eclipse/jetty/server/session/Session;
9 10 4 e Ljava/lang/Exception;
16 17 4 e Ljava/lang/Exception;
Exception table:
from to target type
6 7 8 Class java.lang.Exception
13 14 15 Class java.lang.Exception
public org.eclipse.jetty.server.session.Session newSession(javax.servlet.http.HttpServletRequest, org.eclipse.jetty.server.session.SessionData);
descriptor: (Ljavax/servlet/http/HttpServletRequest;Lorg/eclipse/jetty/server/session/SessionData;)Lorg/eclipse/jetty/server/session/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.eclipse.jetty.server.session.Session
dup
aload 0
invokevirtual org.eclipse.jetty.server.session.DefaultSessionCache.getSessionHandler:()Lorg/eclipse/jetty/server/session/SessionHandler;
aload 1
aload 2
invokespecial org.eclipse.jetty.server.session.Session.<init>:(Lorg/eclipse/jetty/server/session/SessionHandler;Ljavax/servlet/http/HttpServletRequest;Lorg/eclipse/jetty/server/session/SessionData;)V
astore 3
start local 3 1: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 2 1 request Ljavax/servlet/http/HttpServletRequest;
0 2 2 data Lorg/eclipse/jetty/server/session/SessionData;
1 2 3 s Lorg/eclipse/jetty/server/session/Session;
MethodParameters:
Name Flags
request
data
public org.eclipse.jetty.server.session.Session newSession(org.eclipse.jetty.server.session.SessionData);
descriptor: (Lorg/eclipse/jetty/server/session/SessionData;)Lorg/eclipse/jetty/server/session/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new org.eclipse.jetty.server.session.Session
dup
aload 0
invokevirtual org.eclipse.jetty.server.session.DefaultSessionCache.getSessionHandler:()Lorg/eclipse/jetty/server/session/SessionHandler;
aload 1
invokespecial org.eclipse.jetty.server.session.Session.<init>:(Lorg/eclipse/jetty/server/session/SessionHandler;Lorg/eclipse/jetty/server/session/SessionData;)V
astore 2
start local 2 1: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 2 1 data Lorg/eclipse/jetty/server/session/SessionData;
1 2 2 s Lorg/eclipse/jetty/server/session/Session;
MethodParameters:
Name Flags
data
public boolean doReplace(java.lang.String, org.eclipse.jetty.server.session.Session, org.eclipse.jetty.server.session.Session);
descriptor: (Ljava/lang/String;Lorg/eclipse/jetty/server/session/Session;Lorg/eclipse/jetty/server/session/Session;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._sessions:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
aload 2
aload 3
invokevirtual java.util.concurrent.ConcurrentHashMap.replace:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
istore 4
start local 4 1: iload 4
ifeq 3
aload 2
instanceof org.eclipse.jetty.server.session.AbstractSessionCache$PlaceHolderSession
ifeq 3
2: aload 0
getfield org.eclipse.jetty.server.session.DefaultSessionCache._stats:Lorg/eclipse/jetty/util/statistic/CounterStatistic;
invokevirtual org.eclipse.jetty.util.statistic.CounterStatistic.increment:()J
pop2
3: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/server/session/DefaultSessionCache;
0 4 1 id Ljava/lang/String;
0 4 2 oldValue Lorg/eclipse/jetty/server/session/Session;
0 4 3 newValue Lorg/eclipse/jetty/server/session/Session;
1 4 4 result Z
MethodParameters:
Name Flags
id
oldValue
newValue
}
SourceFile: "DefaultSessionCache.java"
InnerClasses:
protected PlaceHolderSession = org.eclipse.jetty.server.session.AbstractSessionCache$PlaceHolderSession of org.eclipse.jetty.server.session.AbstractSessionCache
RuntimeVisibleAnnotations:
org.eclipse.jetty.util.annotation.ManagedObject()