Class InfinispanClientProducer
- java.lang.Object
-
- io.quarkus.infinispan.client.runtime.InfinispanClientProducer
-
@ApplicationScoped public class InfinispanClientProducer extends Object
Produces a configured remote cache manager instance
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_CONFIGstatic StringPROTOBUF_FILE_PREFIXstatic StringPROTOBUF_INITIALIZERS
-
Constructor Summary
Constructors Constructor Description InfinispanClientProducer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidconfigure(Properties properties)org.infinispan.counter.api.CounterManagercounterManager(org.infinispan.client.hotrod.RemoteCacheManager cacheManager)voiddestroy()<K,V>
org.infinispan.client.hotrod.RemoteCache<K,V>getRemoteCache(javax.enterprise.inject.spi.InjectionPoint injectionPoint, org.infinispan.client.hotrod.RemoteCacheManager cacheManager)static voidhandleProtoStreamRequirements(Properties properties)Sets up additional properties for use when proto stream marshaller is in useorg.infinispan.client.hotrod.RemoteCacheManagerremoteCacheManager()static voidreplaceProperties(Properties properties)This method is designed to be called during static initialization time.
-
-
-
Field Detail
-
DEFAULT_CONFIG
public static final String DEFAULT_CONFIG
- See Also:
- Constant Field Values
-
PROTOBUF_FILE_PREFIX
public static final String PROTOBUF_FILE_PREFIX
- See Also:
- Constant Field Values
-
PROTOBUF_INITIALIZERS
public static final String PROTOBUF_INITIALIZERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
replaceProperties
public static void replaceProperties(Properties properties) throws ClassNotFoundException
This method is designed to be called during static initialization time. This is so we have access to the classes, and thus we can use reflection to find and instantiate any instances we may need- Parameters:
properties- properties file read from hot rod- Throws:
ClassNotFoundException- if a class is not actually found that should be present
-
handleProtoStreamRequirements
public static void handleProtoStreamRequirements(Properties properties)
Sets up additional properties for use when proto stream marshaller is in use- Parameters:
properties- the properties to be updated for querying
-
destroy
@PreDestroy public void destroy()
-
getRemoteCache
@Remote @Produces public <K,V> org.infinispan.client.hotrod.RemoteCache<K,V> getRemoteCache(javax.enterprise.inject.spi.InjectionPoint injectionPoint, org.infinispan.client.hotrod.RemoteCacheManager cacheManager)
-
counterManager
@Produces public org.infinispan.counter.api.CounterManager counterManager(org.infinispan.client.hotrod.RemoteCacheManager cacheManager)
-
remoteCacheManager
@Produces public org.infinispan.client.hotrod.RemoteCacheManager remoteCacheManager()
-
configure
void configure(Properties properties)
-
-