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 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

      public String getHosts()
      Specifies the host of the cache on Infinispan instance. Multiple hosts can be separated by semicolon.
    • setHosts

      public void setHosts(String hosts)
    • isSecure

      public boolean isSecure()
    • setSecure

      public void setSecure(boolean secure)
      Define if we are connecting to a secured Infinispan instance
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
      Define the username to access the infinispan instance
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
      Define the password to access the infinispan instance
    • getSaslMechanism

      public String getSaslMechanism()
    • setSaslMechanism

      public void setSaslMechanism(String saslMechanism)
      Define the SASL Mechanism to access the infinispan instance
    • getSecurityRealm

      public String getSecurityRealm()
    • setSecurityRealm

      public void setSecurityRealm(String securityRealm)
      Define the security realm to access the infinispan instance
    • getSecurityServerName

      public String getSecurityServerName()
    • setSecurityServerName

      public void setSecurityServerName(String securityServerName)
      Define the security server name to access the infinispan instance
    • getConfigurationProperties

      public Map<String,String> getConfigurationProperties()
    • setConfigurationProperties

      public void setConfigurationProperties(Map<String,String> configurationProperties)
      Implementation specific properties for the CacheManager
    • addConfigurationProperty

      public void addConfigurationProperty(String key, String value)
      Adds an implementation specific property for the CacheManager
    • getEventTypes

      public String getEventTypes()
    • setEventTypes

      public void setEventTypes(String eventTypes)
      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

      public InfinispanRemoteCustomListener getCustomListener()
      Returns the custom listener in use, if provided
    • setCustomListener

      public void setCustomListener(InfinispanRemoteCustomListener customListener)
    • hasCustomListener

      public boolean hasCustomListener()
    • getFlags

      public org.infinispan.client.hotrod.Flag[] getFlags()
    • setFlags

      public void setFlags(String flagsAsString)
      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

      public void setEmbeddingStoreTypeName(String embeddingStoreTypeName)
      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

      public String getEmbeddingStoreTypeName()
    • clone

      Overrides:
      clone in class Object