public class io.ebeaninternal.server.transaction.TableModState implements io.ebean.cache.QueryCacheEntryValidate, io.ebean.cache.ServerCacheNotify
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.ebeaninternal.server.transaction.TableModState
super_class: java.lang.Object
{
private static final org.slf4j.Logger log;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.Long> tableModStamp;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Long;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "io.ebean.cache.TABLEMOD"
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/String;)Lorg/slf4j/Logger;
putstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
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
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield io.ebeaninternal.server.transaction.TableModState.tableModStamp:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/ebeaninternal/server/transaction/TableModState;
void touch(java.util.Set<java.lang.String>);
descriptor: (Ljava/util/Set;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.nanoTime:()J
lstore 2
start local 2 1: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 4
StackMap locals: io.ebeaninternal.server.transaction.TableModState java.util.Set long top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 0
getfield io.ebeaninternal.server.transaction.TableModState.tableModStamp:Ljava/util/Map;
aload 4
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 4: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 7
6: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
ldc "TableModState updated - touched:{} modNanoTime:{}"
aload 1
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
7: StackMap locals: io.ebeaninternal.server.transaction.TableModState java.util.Set long
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/ebeaninternal/server/transaction/TableModState;
0 8 1 touchedTables Ljava/util/Set<Ljava/lang/String;>;
1 8 2 modNanoTime J
3 4 4 tableName Ljava/lang/String;
Signature: (Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
touchedTables
boolean isValid(java.util.Set<java.lang.String>, );
descriptor: (Ljava/util/Set;J)Z
flags: (0x0000)
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: io.ebeaninternal.server.transaction.TableModState java.util.Set long top java.util.Iterator
StackMap stack:
1: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 2: aload 0
getfield io.ebeaninternal.server.transaction.TableModState.tableModStamp:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
astore 6
start local 6 3: aload 6
ifnull 7
aload 6
invokevirtual java.lang.Long.longValue:()J
lload 2
lcmp
iflt 7
4: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 6
5: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
ldc "Invalidate on table:{}"
aload 4
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
6: StackMap locals: io.ebeaninternal.server.transaction.TableModState java.util.Set long java.lang.String java.util.Iterator java.lang.Long
StackMap stack:
iconst_0
ireturn
end local 6 end local 4 7: StackMap locals: io.ebeaninternal.server.transaction.TableModState java.util.Set long top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/ebeaninternal/server/transaction/TableModState;
0 9 1 tables Ljava/util/Set<Ljava/lang/String;>;
0 9 2 sinceNanoTime J
2 7 4 tableName Ljava/lang/String;
3 7 6 modTime Ljava/lang/Long;
Signature: (Ljava/util/Set<Ljava/lang/String;>;J)Z
MethodParameters:
Name Flags
tables
sinceNanoTime
public boolean isValid(io.ebean.cache.QueryCacheEntry);
descriptor: (Lio/ebean/cache/QueryCacheEntry;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.ebean.cache.QueryCacheEntry.getDependentTables:()Ljava/util/Set;
astore 2
start local 2 1: aload 2
ifnull 3
aload 2
invokeinterface java.util.Set.isEmpty:()Z
ifne 3
2: aload 0
aload 2
aload 1
invokevirtual io.ebean.cache.QueryCacheEntry.getTimestamp:()J
invokevirtual io.ebeaninternal.server.transaction.TableModState.isValid:(Ljava/util/Set;J)Z
ireturn
3: StackMap locals: java.util.Set
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/ebeaninternal/server/transaction/TableModState;
0 4 1 entry Lio/ebean/cache/QueryCacheEntry;
1 4 2 dependentTables Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
entry
public void notify(io.ebean.cache.ServerCacheNotification);
descriptor: (Lio/ebean/cache/ServerCacheNotification;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 2
1: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
ldc "ServerCacheNotification:{}"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.ebean.cache.ServerCacheNotification.getDependentTables:()Ljava/util/Set;
invokevirtual io.ebeaninternal.server.transaction.TableModState.touch:(Ljava/util/Set;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/ebeaninternal/server/transaction/TableModState;
0 4 1 notification Lio/ebean/cache/ServerCacheNotification;
MethodParameters:
Name Flags
notification
public void notify(io.ebeaninternal.server.transaction.RemoteTableMod);
descriptor: (Lio/ebeaninternal/server/transaction/RemoteTableMod;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 2
1: getstatic io.ebeaninternal.server.transaction.TableModState.log:Lorg/slf4j/Logger;
ldc "RemoteTableMod:{}"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.ebeaninternal.server.transaction.RemoteTableMod.getTables:()Ljava/util/Set;
invokevirtual io.ebeaninternal.server.transaction.TableModState.touch:(Ljava/util/Set;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/ebeaninternal/server/transaction/TableModState;
0 4 1 tableMod Lio/ebeaninternal/server/transaction/RemoteTableMod;
MethodParameters:
Name Flags
tableMod
}
SourceFile: "TableModState.java"