Class CacheOperationsFactory

    • Method Detail

      • getCodec

        public Codec getCodec()
      • setCodec

        public void setCodec​(Codec codec)
      • newGetKeyOperation

        public <K,​V> GetOperation<K,​V> newGetKeyOperation​(K key,
                                                                      byte[] keyBytes,
                                                                      org.infinispan.api.common.CacheOptions options,
                                                                      DataFormat dataFormat)
      • newGetAllOperation

        public <K,​V> GetAllParallelOperation<K,​V> newGetAllOperation​(Set<byte[]> keys,
                                                                                 org.infinispan.api.common.CacheOptions options,
                                                                                 DataFormat dataFormat)
      • newGetAndRemoveOperation

        public <K,​V> GetAndRemoveOperation<K,​V> newGetAndRemoveOperation​(K key,
                                                                                     byte[] keyBytes,
                                                                                     org.infinispan.api.common.CacheOptions options,
                                                                                     DataFormat dataFormat)
      • newRemoveOperation

        public <K> RemoveOperation<K> newRemoveOperation​(K key,
                                                         byte[] keyBytes,
                                                         org.infinispan.api.common.CacheOptions options,
                                                         DataFormat dataFormat)
      • newRemoveIfUnmodifiedOperation

        public <K,​V> RemoveIfUnmodifiedOperation<K,​V> newRemoveIfUnmodifiedOperation​(K key,
                                                                                                 byte[] keyBytes,
                                                                                                 long version,
                                                                                                 org.infinispan.api.common.CacheOptions options,
                                                                                                 DataFormat dataFormat)
      • newReplaceIfUnmodifiedOperation

        public <K,​V> ReplaceIfUnmodifiedOperation<K,​V> newReplaceIfUnmodifiedOperation​(K key,
                                                                                                   byte[] keyBytes,
                                                                                                   byte[] value,
                                                                                                   long version,
                                                                                                   org.infinispan.api.common.CacheWriteOptions options,
                                                                                                   DataFormat dataFormat)
      • newGetWithMetadataOperation

        public <K,​V> GetWithMetadataOperation<K,​V> newGetWithMetadataOperation​(K key,
                                                                                           byte[] keyBytes,
                                                                                           org.infinispan.api.common.CacheOptions options,
                                                                                           DataFormat dataFormat)
      • newGetWithMetadataOperation

        public <K,​V> GetWithMetadataOperation<K,​V> newGetWithMetadataOperation​(K key,
                                                                                           byte[] keyBytes,
                                                                                           org.infinispan.api.common.CacheOptions options,
                                                                                           DataFormat dataFormat,
                                                                                           SocketAddress listenerServer)
      • newStatsOperation

        public StatsOperation newStatsOperation​(org.infinispan.api.common.CacheOptions options)
      • newPutKeyValueOperation

        public <K,​V> PutOperation<K,​V> newPutKeyValueOperation​(K key,
                                                                           byte[] keyBytes,
                                                                           byte[] value,
                                                                           org.infinispan.api.common.CacheWriteOptions options,
                                                                           DataFormat dataFormat)
      • newSetKeyValueOperation

        public <K> SetOperation<K> newSetKeyValueOperation​(K key,
                                                           byte[] keyBytes,
                                                           byte[] value,
                                                           org.infinispan.api.common.CacheWriteOptions options,
                                                           DataFormat dataFormat)
      • newPutAllOperation

        public PutAllParallelOperation newPutAllOperation​(Map<byte[],​byte[]> map,
                                                          org.infinispan.api.common.CacheWriteOptions options,
                                                          DataFormat dataFormat)
      • newPutIfAbsentOperation

        public <K,​V> PutIfAbsentOperation<K,​V> newPutIfAbsentOperation​(K key,
                                                                                   byte[] keyBytes,
                                                                                   byte[] value,
                                                                                   org.infinispan.api.common.CacheWriteOptions options,
                                                                                   DataFormat dataFormat)
      • newSetIfAbsentOperation

        public <K> SetIfAbsentOperation<K> newSetIfAbsentOperation​(K key,
                                                                   byte[] keyBytes,
                                                                   byte[] value,
                                                                   org.infinispan.api.common.CacheWriteOptions options,
                                                                   DataFormat dataFormat)
      • newReplaceOperation

        public <K,​V> ReplaceOperation<K,​V> newReplaceOperation​(K key,
                                                                           byte[] keyBytes,
                                                                           byte[] value,
                                                                           org.infinispan.api.common.CacheWriteOptions options,
                                                                           DataFormat dataFormat)
      • newContainsKeyOperation

        public ContainsKeyOperation newContainsKeyOperation​(Object key,
                                                            byte[] keyBytes,
                                                            org.infinispan.api.common.CacheOptions options,
                                                            DataFormat dataFormat)
      • newBulkGetKeysOperation

        public <K> BulkGetKeysOperation<K> newBulkGetKeysOperation​(int scope,
                                                                   org.infinispan.api.common.CacheOptions options,
                                                                   DataFormat dataFormat)
      • newAddClientListenerOperation

        public AddClientListenerOperation newAddClientListenerOperation​(Object listener,
                                                                        byte[][] filterFactoryParams,
                                                                        byte[][] converterFactoryParams,
                                                                        org.infinispan.api.common.CacheOptions options,
                                                                        DataFormat dataFormat)
      • newRemoveClientListenerOperation

        public RemoveClientListenerOperation newRemoveClientListenerOperation​(Object listener,
                                                                              org.infinispan.api.common.CacheOptions options)
      • newPingOperation

        public PingOperation newPingOperation​(boolean releaseChannel)
        Construct a ping request directed to a particular node.
        Parameters:
        releaseChannel -
        Returns:
        a ping operation for a particular node
      • newFaultTolerantPingOperation

        public FaultTolerantPingOperation newFaultTolerantPingOperation()
        Construct a fault tolerant ping request. This operation should be capable to deal with nodes being down, so it will find the first node successful node to respond to the ping.
        Returns:
        a ping operation for the cluster
      • newSizeOperation

        public SizeOperation newSizeOperation​(org.infinispan.api.common.CacheOptions options)
      • newAdminOperation

        public AdminOperation newAdminOperation​(String taskName,
                                                Map<String,​byte[]> marshalledParams,
                                                org.infinispan.api.common.CacheOptions options)
      • getPrimarySegmentsByAddress

        public Map<SocketAddress,​Set<Integer>> getPrimarySegmentsByAddress()
        Returns a map containing for each address all of its primarily owned segments. If the primary segments are not known an empty map will be returned instead
        Returns:
        map containing addresses and their primary segments
      • getTopologyId

        public int getTopologyId()
      • newIterationStartOperation

        public IterationStartOperation newIterationStartOperation​(String filterConverterFactory,
                                                                  byte[][] filterParameters,
                                                                  org.infinispan.commons.util.IntSet segments,
                                                                  int batchSize,
                                                                  boolean metadata,
                                                                  org.infinispan.api.common.CacheOptions options,
                                                                  DataFormat dataFormat,
                                                                  SocketAddress targetAddress)
      • newIterationEndOperation

        public IterationEndOperation newIterationEndOperation​(byte[] iterationId,
                                                              org.infinispan.api.common.CacheOptions options,
                                                              io.netty.channel.Channel channel)
      • newIterationNextOperation

        public <K,​E> IterationNextOperation<K,​E> newIterationNextOperation​(byte[] iterationId,
                                                                                       io.netty.channel.Channel channel,
                                                                                       KeyTracker segmentKeyTracker,
                                                                                       org.infinispan.api.common.CacheOptions options,
                                                                                       DataFormat dataFormat)
      • newGetStreamOperation

        public <K> GetStreamOperation<K> newGetStreamOperation​(K key,
                                                               byte[] keyBytes,
                                                               int offset,
                                                               org.infinispan.api.common.CacheOptions options)
      • newPutStreamOperation

        public <K> PutStreamOperation<K> newPutStreamOperation​(K key,
                                                               byte[] keyBytes,
                                                               long version,
                                                               org.infinispan.api.common.CacheWriteOptions options)
      • newPutStreamOperation

        public <K> PutStreamOperation<K> newPutStreamOperation​(K key,
                                                               byte[] keyBytes,
                                                               org.infinispan.api.common.CacheWriteOptions options)
      • newPutIfAbsentStreamOperation

        public <K> PutStreamOperation<K> newPutIfAbsentStreamOperation​(K key,
                                                                       byte[] keyBytes,
                                                                       org.infinispan.api.common.CacheWriteOptions options)
      • newAuthMechListOperation

        public AuthMechListOperation newAuthMechListOperation​(io.netty.channel.Channel channel)
      • newAuthOperation

        public AuthOperation newAuthOperation​(io.netty.channel.Channel channel,
                                              String saslMechanism,
                                              byte[] response)