Interface InternalRemoteCache<K,​V>

    • Method Detail

      • keyIterator

        org.infinispan.commons.util.CloseableIterator<K> keyIterator​(org.infinispan.commons.util.IntSet segments)
      • entryIterator

        org.infinispan.commons.util.CloseableIterator<Map.Entry<K,​V>> entryIterator​(org.infinispan.commons.util.IntSet segments)
      • removeEntry

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

        default boolean removeEntry​(K key,
                                    V value)
      • 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)
      • isObjectStorage

        boolean isObjectStorage()
      • keyAsObjectIfNeeded

        K keyAsObjectIfNeeded​(Object key)
      • keyToBytes

        byte[] keyToBytes​(Object o)
      • 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