Interface InternalRemoteCache<K,​V>

    • Method Detail

      • removeEntry

        default boolean removeEntry​(Map.Entry<K,​V> entry)
      • removeEntry

        default boolean removeEntry​(K key,
                                    V value)
      • getWithMetadataAsync

        org.infinispan.client.hotrod.impl.operations.RetryAwareCompletionStage<MetadataValue<V>> getWithMetadataAsync​(K key,
                                                                                                                      SocketAddress preferredAddres)
      • withFlags

        InternalRemoteCache<K,​V> withFlags​(Flag... flags)
        Description copied from interface: RemoteCache
        Applies one or more Flags to the scope of a single invocation. See the Flag enumeration to for information on available flags.

        Sample usage:

            remoteCache.withFlags(Flag.FORCE_RETURN_VALUE).put("hello", "world");
         
        Specified by:
        withFlags in interface RemoteCache<K,​V>
        Returns:
        the current RemoteCache instance to continue running operations on.
      • hasForceReturnFlag

        boolean hasForceReturnFlag()
      • resolveStorage

        void resolveStorage​(boolean objectStorage)
      • init

        void init​(org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory,
                  Configuration configuration,
                  ObjectName jmxParent)
      • init

        void init​(org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory,
                  Configuration configuration)
      • getOperationsFactory

        org.infinispan.client.hotrod.impl.operations.OperationsFactory getOperationsFactory()
      • isObjectStorage

        boolean isObjectStorage()
      • keyAsObjectIfNeeded

        K keyAsObjectIfNeeded​(Object key)
      • keyToBytes

        byte[] keyToBytes​(Object o)
      • ping

        CompletionStage<org.infinispan.client.hotrod.impl.operations.PingResponse> ping()
      • addNearCacheListener

        SocketAddress addNearCacheListener​(Object listener,
                                           int bloomBits)
        Add a client listener to handle near cache with bloom filter optimization The listener object must be annotated with @ClientListener annotation.
      • updateBloomFilter

        CompletionStage<Void> updateBloomFilter()
        Sends the current bloom filter to the listener node where a near cache listener is installed. If this cache does not have near caching this will return an already completed stage.
        Returns:
        stage that when complete the filter was sent to the listener node