Package org.apache.solr.jersey
Class JerseyAppHandlerCache
- java.lang.Object
-
- org.apache.solr.jersey.JerseyAppHandlerCache
-
-
Constructor Summary
Constructors Constructor Description JerseyAppHandlerCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.jersey.server.ApplicationHandler
computeIfAbsent(String effectiveSolrConfigId, Supplier<org.glassfish.jersey.server.ApplicationHandler> createApplicationHandler)
Return the 'ApplicationHandler' associated with the provided ID, creating it first if necessary.int
size()
-
-
-
Method Detail
-
computeIfAbsent
public org.glassfish.jersey.server.ApplicationHandler computeIfAbsent(String effectiveSolrConfigId, Supplier<org.glassfish.jersey.server.ApplicationHandler> createApplicationHandler)
Return the 'ApplicationHandler' associated with the provided ID, creating it first if necessary.This method is thread-safe by virtue of its delegation to
Cache.get(Object, Function)
internally.- Parameters:
effectiveSolrConfigId
- an ID to associate the ApplicationHandler with. Usually created viaSolrConfig.effectiveId()
.createApplicationHandler
- a Supplier producing an ApplicationHandler
-
size
public int size()
-
-