org.apache.cayenne.jcache.JCacheQueryCache.class Maven / Gradle / Ivy
???? 4 ?
z {
z
| } - ~ ?
? ? ?
- ? ? ? ? ?
? ? ? ? ? ? - ? ? ? ? ? ? ? ? ?
- ? ? ? ? ? ? ? ? ?
- ?
- ?
- ? ? ? ? - ? ? ? ? - ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? LOGGER Lorg/slf4j/Logger; cacheManager Ljavax/cache/CacheManager; RuntimeVisibleAnnotations Lorg/apache/cayenne/di/Inject; configurationFactory 6Lorg/apache/cayenne/jcache/JCacheConfigurationFactory; seenCacheNames Ljava/util/Set; Signature #Ljava/util/Set; ()V Code LineNumberTable LocalVariableTable this ,Lorg/apache/cayenne/jcache/JCacheQueryCache; get :(Lorg/apache/cayenne/query/QueryMetadata;)Ljava/util/List; metadata (Lorg/apache/cayenne/query/QueryMetadata; key Ljava/lang/String; cache Ljavax/cache/Cache; LocalVariableTypeTable 7Ljavax/cache/Cache; k(Lorg/apache/cayenne/query/QueryMetadata;Lorg/apache/cayenne/cache/QueryCacheEntryFactory;)Ljava/util/List; factory 1Lorg/apache/cayenne/cache/QueryCacheEntryFactory; result Ljava/util/List; Ljava/util/List<*>;
StackMapTable ? ? ? put ;(Lorg/apache/cayenne/query/QueryMetadata;Ljava/util/List;)V results remove (Ljava/lang/String;)V ? removeGroup groupKey 7(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)V keyType Ljava/lang/Class; valueType Ljava/lang/Class<*>; =(Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V clear name
Deprecated Ljava/lang/Deprecated; createIfAbsent =(Lorg/apache/cayenne/query/QueryMetadata;)Ljavax/cache/Cache; a(Lorg/apache/cayenne/query/QueryMetadata;)Ljavax/cache/Cache; '(Ljava/lang/String;)Ljavax/cache/Cache; e Ljavax/cache/CacheException; cacheName ? ? K(Ljava/lang/String;)Ljavax/cache/Cache; createCache getCache <(Lorg/apache/cayenne/query/QueryMetadata;)Ljava/lang/String;
cacheGroup shutdown &Lorg/apache/cayenne/di/BeforeScopeEnd;
SourceFile JCacheQueryCache.java : ; &java/util/concurrent/ConcurrentHashMap ? ? ? 6 7 ? ? ? ? ? ? java/lang/String g h ? A ? java/util/List +org/apache/cayenne/jcache/JCacheEntryLoader : ? java/lang/Object ? ? U ? 0 1 ? ? ? ? ? ? ? ? ? ? ? r j X ? c ; r ? ? m s g j q j javax/cache/CacheException ? ? . / ?Creating a new JCache entry '{}'. It will be unlimited by default, and that can lead to greater memory usage or even leak. This entry could be configured by JCache provider-specific configuration. ? ? ? 4 5 ? ? ? q ? ? ? )org/apache/cayenne/jcache/JCacheConstants cayenne.default.cache ? ; #org/apache/cayenne/cache/QueryCache ? ? ? *org/apache/cayenne/jcache/JCacheQueryCache javax/cache/Cache java/util/Iterator java/util/Collections
newSetFromMap (Ljava/util/Map;)Ljava/util/Set; &org/apache/cayenne/query/QueryMetadata getCacheKey ()Ljava/lang/String; java/util/Objects requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; 4(Lorg/apache/cayenne/cache/QueryCacheEntryFactory;)V invoke _(Ljava/lang/Object;Ljavax/cache/processor/EntryProcessor;[Ljava/lang/Object;)Ljava/lang/Object; '(Ljava/lang/Object;Ljava/lang/Object;)V javax/cache/CacheManager
getCacheNames ()Ljava/lang/Iterable; java/lang/Iterable iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; (Ljava/lang/Object;)Z I(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;)Ljavax/cache/Cache;
java/util/Set add org/slf4j/Logger warn '(Ljava/lang/String;Ljava/lang/Object;)V 4org/apache/cayenne/jcache/JCacheConfigurationFactory create =(Ljava/lang/String;)Ljavax/cache/configuration/Configuration; P(Ljava/lang/String;Ljavax/cache/configuration/Configuration;)Ljavax/cache/Cache;
getCacheGroup close org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! - + . / 0 1 2 3 4 5 2 3 6 7 8 9 : ; <