public class io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl implements io.vertx.ext.web.sstore.SessionStore, io.vertx.ext.web.sstore.LocalSessionStore, io.vertx.core.Handler<java.lang.Long>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl
super_class: java.lang.Object
{
private static final long DEFAULT_REAPER_INTERVAL;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1000
private static final java.lang.String DEFAULT_SESSION_MAP_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "vertx-web.sessions"
private io.vertx.core.shareddata.LocalMap<java.lang.String, io.vertx.ext.web.Session> localMap;
descriptor: Lio/vertx/core/shareddata/LocalMap;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/shareddata/LocalMap<Ljava/lang/String;Lio/vertx/ext/web/Session;>;
private long reaperInterval;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private io.vertx.ext.auth.VertxContextPRNG random;
descriptor: Lio/vertx/ext/auth/VertxContextPRNG;
flags: (0x0002) ACC_PRIVATE
private long timerID;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.timerID:J
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
public io.vertx.ext.web.Session createSession(long);
descriptor: (J)Lio/vertx/ext/web/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new io.vertx.ext.web.sstore.impl.SharedDataSessionImpl
dup
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.random:Lio/vertx/ext/auth/VertxContextPRNG;
lload 1
bipush 16
invokespecial io.vertx.ext.web.sstore.impl.SharedDataSessionImpl.<init>:(Lio/vertx/ext/auth/VertxContextPRNG;JI)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 1 1 timeout J
MethodParameters:
Name Flags
timeout
public io.vertx.ext.web.Session createSession(long, int);
descriptor: (JI)Lio/vertx/ext/web/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 3 0: new io.vertx.ext.web.sstore.impl.SharedDataSessionImpl
dup
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.random:Lio/vertx/ext/auth/VertxContextPRNG;
lload 1
iload 3
invokespecial io.vertx.ext.web.sstore.impl.SharedDataSessionImpl.<init>:(Lio/vertx/ext/auth/VertxContextPRNG;JI)V
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 1 1 timeout J
0 1 3 length I
MethodParameters:
Name Flags
timeout
length
public io.vertx.ext.web.sstore.SessionStore init(io.vertx.core.Vertx, io.vertx.core.json.JsonObject);
descriptor: (Lio/vertx/core/Vertx;Lio/vertx/core/json/JsonObject;)Lio/vertx/ext/web/sstore/SessionStore;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic io.vertx.ext.auth.VertxContextPRNG.current:(Lio/vertx/core/Vertx;)Lio/vertx/ext/auth/VertxContextPRNG;
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.random:Lio/vertx/ext/auth/VertxContextPRNG;
1: aload 0
aload 1
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.vertx:Lio/vertx/core/Vertx;
2: aload 0
aload 2
ldc "reaperInterval"
ldc 1000
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.getLong:(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.reaperInterval:J
3: aload 0
aload 1
invokeinterface io.vertx.core.Vertx.sharedData:()Lio/vertx/core/shareddata/SharedData;
aload 2
ldc "mapName"
ldc "vertx-web.sessions"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokeinterface io.vertx.core.shareddata.SharedData.getLocalMap:(Ljava/lang/String;)Lio/vertx/core/shareddata/LocalMap;
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
4: aload 0
invokevirtual io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.setTimer:()V
5: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 6 1 vertx Lio/vertx/core/Vertx;
0 6 2 options Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
vertx
options
public long retryTimeout();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
public void get(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.Session>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
aload 1
invokeinterface io.vertx.core.shareddata.LocalMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.web.Session
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 2 1 id Ljava/lang/String;
0 2 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/Session;>;>;
Signature: (Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/Session;>;>;)V
MethodParameters:
Name Flags
id
resultHandler
public void delete(java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Ljava/lang/String;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
aload 1
invokeinterface io.vertx.core.shareddata.LocalMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 3 1 id Ljava/lang/String;
0 3 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
id
resultHandler
public void put(io.vertx.ext.web.Session, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/ext/web/Session;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
aload 1
invokeinterface io.vertx.ext.web.Session.id:()Ljava/lang/String;
invokeinterface io.vertx.core.shareddata.LocalMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.ext.web.sstore.AbstractSession
astore 3
start local 3 1: aload 1
checkcast io.vertx.ext.web.sstore.AbstractSession
astore 4
start local 4 2: aload 3
ifnull 6
3: aload 3
invokevirtual io.vertx.ext.web.sstore.AbstractSession.version:()I
aload 4
invokevirtual io.vertx.ext.web.sstore.AbstractSession.version:()I
if_icmpeq 6
4: aload 2
ldc "Version mismatch"
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
5: return
6: StackMap locals: io.vertx.ext.web.sstore.AbstractSession io.vertx.ext.web.sstore.AbstractSession
StackMap stack:
aload 4
invokevirtual io.vertx.ext.web.sstore.AbstractSession.incrementVersion:()V
7: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
aload 1
invokeinterface io.vertx.ext.web.Session.id:()Ljava/lang/String;
aload 1
invokeinterface io.vertx.core.shareddata.LocalMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 2
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 10 1 session Lio/vertx/ext/web/Session;
0 10 2 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
1 10 3 oldSession Lio/vertx/ext/web/sstore/AbstractSession;
2 10 4 newSession Lio/vertx/ext/web/sstore/AbstractSession;
Signature: (Lio/vertx/ext/web/Session;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
session
resultHandler
public void clear(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
invokeinterface io.vertx.core.shareddata.LocalMap.clear:()V
1: aload 1
invokestatic io.vertx.core.Future.succeededFuture:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 3 1 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
resultHandler
public void size(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Integer>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
invokeinterface io.vertx.core.shareddata.LocalMap.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 2 1 resultHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Integer;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Integer;>;>;)V
MethodParameters:
Name Flags
resultHandler
public synchronized void close();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
invokeinterface io.vertx.core.shareddata.LocalMap.close:()V
1: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.timerID:J
ldc -1
lcmp
ifeq 3
2: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.timerID:J
invokeinterface io.vertx.core.Vertx.cancelTimer:(J)Z
pop
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.closed:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
public synchronized void handle(java.lang.Long);
descriptor: (Ljava/lang/Long;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 1: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 4
start local 4 2: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
lload 2
aload 4
invokedynamic accept(JLjava/util/Set;)Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
io/vertx/ext/web/sstore/impl/LocalSessionStoreImpl.lambda$0(JLjava/util/Set;Ljava/lang/String;Lio/vertx/ext/web/Session;)V (6)
(Ljava/lang/String;Lio/vertx/ext/web/Session;)V
invokeinterface io.vertx.core.shareddata.LocalMap.forEach:(Ljava/util/function/BiConsumer;)V
3: aload 4
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 6
StackMap locals: io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl java.lang.Long long java.util.Set top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 5: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.localMap:Lio/vertx/core/shareddata/LocalMap;
aload 5
invokeinterface io.vertx.core.shareddata.LocalMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 6: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.closed:Z
ifne 9
8: aload 0
invokevirtual io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.setTimer:()V
9: StackMap locals: io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl java.lang.Long long java.util.Set
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
0 10 1 tid Ljava/lang/Long;
1 10 2 now J
2 10 4 toRemove Ljava/util/Set<Ljava/lang/String;>;
5 6 5 id Ljava/lang/String;
MethodParameters:
Name Flags
tid
private void setTimer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.reaperInterval:J
lconst_0
lcmp
ifeq 2
1: aload 0
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.vertx:Lio/vertx/core/Vertx;
aload 0
getfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.reaperInterval:J
aload 0
invokeinterface io.vertx.core.Vertx.setTimer:(JLio/vertx/core/Handler;)J
putfield io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.timerID:J
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/sstore/impl/LocalSessionStoreImpl;
public void handle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Long
invokevirtual io.vertx.ext.web.sstore.impl.LocalSessionStoreImpl.handle:(Ljava/lang/Long;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$0(long, java.util.Set, java.lang.String, io.vertx.ext.web.Session);
descriptor: (JLjava/util/Set;Ljava/lang/String;Lio/vertx/ext/web/Session;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=5, args_size=4
start local 3 start local 4 0: lload 0
aload 4
invokeinterface io.vertx.ext.web.Session.lastAccessed:()J
lsub
aload 4
invokeinterface io.vertx.ext.web.Session.timeout:()J
lcmp
ifle 2
1: aload 2
aload 3
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 4 end local 3 LocalVariableTable:
Start End Slot Name Signature
0 3 3 id Ljava/lang/String;
0 3 4 session Lio/vertx/ext/web/Session;
}
Signature: Ljava/lang/Object;Lio/vertx/ext/web/sstore/SessionStore;Lio/vertx/ext/web/sstore/LocalSessionStore;Lio/vertx/core/Handler<Ljava/lang/Long;>;
SourceFile: "LocalSessionStoreImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles