Class InfinispanRemoteConfiguration
java.lang.Object
org.apache.camel.component.infinispan.InfinispanConfiguration
org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration
- All Implemented Interfaces:
Cloneable
@UriParams
public class InfinispanRemoteConfiguration
extends org.apache.camel.component.infinispan.InfinispanConfiguration
implements Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigurationProperty(String key, String value) Adds an implementation specific property for the CacheManagerclone()org.infinispan.client.hotrod.RemoteCacheManagerSpecifies the cache Container to connectorg.infinispan.client.hotrod.configuration.ConfigurationReturns the custom listener in use, if providedlongintorg.infinispan.api.annotations.indexing.option.VectorSimilarityorg.infinispan.client.hotrod.Flag[]getFlags()getHosts()Specifies the host of the cache on Infinispan instance.booleanbooleanhasFlags()booleanbooleanbooleanisSecure()voidsetCacheContainer(org.infinispan.client.hotrod.RemoteCacheManager cacheContainer) voidsetCacheContainerConfiguration(org.infinispan.client.hotrod.configuration.Configuration cacheContainerConfiguration) The CacheContainer configuration.voidsetConfigurationProperties(Map<String, String> configurationProperties) Implementation specific properties for the CacheManagervoidsetCustomListener(InfinispanRemoteCustomListener customListener) voidsetEmbeddingStoreDimension(int embeddingStoreDimension) The dimension size used to store vector embeddings.voidsetEmbeddingStoreDistance(int embeddingStoreDistance) The distance to use for kNN search queries in relation to the configured vector similarity.voidsetEmbeddingStoreEnabled(boolean embeddingStoreEnabled) Whether to enable the embedding store.voidsetEmbeddingStoreRegisterSchema(boolean embeddingStoreRegisterSchema) Whether to automatically register the proto schema for the types required by embedding store cache put and query operations.voidsetEmbeddingStoreTypeName(String embeddingStoreTypeName) The name of the type used to store embeddings.voidsetEmbeddingStoreVectorSimilarity(org.infinispan.api.annotations.indexing.option.VectorSimilarity embeddingStoreVectorSimilarity) The vector similarity algorithm used to store embeddings.voidsetEventTypes(String eventTypes) Specifies the set of event types to register by the consumer.Multiple event can be separated by comma.voidA comma separated list of org.infinispan.client.hotrod.Flag to be applied by default on each cache invocation.voidsetFlags(org.infinispan.client.hotrod.Flag... flags) voidvoidsetPassword(String password) Define the password to access the infinispan instancevoidsetSaslMechanism(String saslMechanism) Define the SASL Mechanism to access the infinispan instancevoidsetSecure(boolean secure) Define if we are connecting to a secured Infinispan instancevoidsetSecurityRealm(String securityRealm) Define the security realm to access the infinispan instancevoidsetSecurityServerName(String securityServerName) Define the security server name to access the infinispan instancevoidsetUsername(String username) Define the username to access the infinispan instanceMethods inherited from class org.apache.camel.component.infinispan.InfinispanConfiguration
getConfigurationUri, getDefaultValue, getKey, getOldValue, getOperation, getOperationOrDefault, getQueryBuilder, getRemappingFunction, getResultHeader, getValue, hasQueryBuilder, setConfigurationUri, setDefaultValue, setKey, setOldValue, setOperation, setQueryBuilder, setRemappingFunction, setResultHeader, setValue
-
Constructor Details
-
InfinispanRemoteConfiguration
public InfinispanRemoteConfiguration()
-
-
Method Details
-
getCacheContainerConfiguration
public org.infinispan.client.hotrod.configuration.Configuration getCacheContainerConfiguration() -
setCacheContainerConfiguration
public void setCacheContainerConfiguration(org.infinispan.client.hotrod.configuration.Configuration cacheContainerConfiguration) The CacheContainer configuration. Used if the cacheContainer is not defined. -
getCacheContainer
public org.infinispan.client.hotrod.RemoteCacheManager getCacheContainer()Specifies the cache Container to connect -
setCacheContainer
public void setCacheContainer(org.infinispan.client.hotrod.RemoteCacheManager cacheContainer) -
getHosts
Specifies the host of the cache on Infinispan instance. Multiple hosts can be separated by semicolon. -
setHosts
-
isSecure
public boolean isSecure() -
setSecure
public void setSecure(boolean secure) Define if we are connecting to a secured Infinispan instance -
getUsername
-
setUsername
Define the username to access the infinispan instance -
getPassword
-
setPassword
Define the password to access the infinispan instance -
getSaslMechanism
-
setSaslMechanism
Define the SASL Mechanism to access the infinispan instance -
getSecurityRealm
-
setSecurityRealm
Define the security realm to access the infinispan instance -
getSecurityServerName
-
setSecurityServerName
Define the security server name to access the infinispan instance -
getConfigurationProperties
-
setConfigurationProperties
Implementation specific properties for the CacheManager -
addConfigurationProperty
Adds an implementation specific property for the CacheManager -
getEventTypes
-
setEventTypes
Specifies the set of event types to register by the consumer.Multiple event can be separated by comma. The possible event types are: CLIENT_CACHE_ENTRY_CREATED, CLIENT_CACHE_ENTRY_MODIFIED, CLIENT_CACHE_ENTRY_REMOVED, CLIENT_CACHE_ENTRY_EXPIRED, CLIENT_CACHE_FAILOVER -
getCustomListener
Returns the custom listener in use, if provided -
setCustomListener
-
hasCustomListener
public boolean hasCustomListener() -
getFlags
public org.infinispan.client.hotrod.Flag[] getFlags() -
setFlags
A comma separated list of org.infinispan.client.hotrod.Flag to be applied by default on each cache invocation. -
setFlags
public void setFlags(org.infinispan.client.hotrod.Flag... flags) -
hasFlags
public boolean hasFlags() -
setEmbeddingStoreDimension
public void setEmbeddingStoreDimension(int embeddingStoreDimension) The dimension size used to store vector embeddings. This should be equal to the dimension size of the model used to create the vector embeddings. This option is mandatory if the embedding store is enabled. -
getEmbeddingStoreDimension
public long getEmbeddingStoreDimension() -
setEmbeddingStoreVectorSimilarity
public void setEmbeddingStoreVectorSimilarity(org.infinispan.api.annotations.indexing.option.VectorSimilarity embeddingStoreVectorSimilarity) The vector similarity algorithm used to store embeddings. -
getEmbeddingStoreVectorSimilarity
public org.infinispan.api.annotations.indexing.option.VectorSimilarity getEmbeddingStoreVectorSimilarity() -
setEmbeddingStoreEnabled
public void setEmbeddingStoreEnabled(boolean embeddingStoreEnabled) Whether to enable the embedding store. When enabled, the embedding store will be configured automatically when Camel starts. Note that this feature requires camel-langchain4j-embeddings to be on the classpath. -
isEmbeddingStoreEnabled
public boolean isEmbeddingStoreEnabled() -
setEmbeddingStoreRegisterSchema
public void setEmbeddingStoreRegisterSchema(boolean embeddingStoreRegisterSchema) Whether to automatically register the proto schema for the types required by embedding store cache put and query operations. -
isEmbeddingStoreRegisterSchema
public boolean isEmbeddingStoreRegisterSchema() -
setEmbeddingStoreDistance
public void setEmbeddingStoreDistance(int embeddingStoreDistance) The distance to use for kNN search queries in relation to the configured vector similarity. -
getEmbeddingStoreDistance
public int getEmbeddingStoreDistance() -
setEmbeddingStoreTypeName
The name of the type used to store embeddings. The default is 'InfinispanRemoteEmbedding' suffixed with the value of the embeddingStoreDimension option. E.g. CamelInfinispanRemoteEmbedding384. -
getEmbeddingStoreTypeName
-
clone
-