Class GridCacheGateway<K,​V>

    • Constructor Detail

      • GridCacheGateway

        public GridCacheGateway​(GridCacheContext<K,​V> ctx)
        Parameters:
        ctx - Cache context.
    • Method Detail

      • enter

        public void enter()
        Enter a cache call.
      • enterIfNotStopped

        public boolean enterIfNotStopped()
        Enter a cache call.
        Returns:
        True if enter successful, false if the cache or the node was stopped.
      • enterIfNotStoppedNoLock

        public boolean enterIfNotStoppedNoLock()
        Enter a cache call without lock.
        Returns:
        True if enter successful, false if the cache or the node was stopped.
      • leave

        public void leave()
        Leave a cache call entered by enter() method.
      • enter

        @Nullable
        public @Nullable CacheOperationContext enter​(@Nullable
                                                     @Nullable CacheOperationContext opCtx)
        Parameters:
        opCtx - Cache operation context to guard.
        Returns:
        Previous operation context set on this thread.
      • enterNoLock

        @Nullable
        public @Nullable CacheOperationContext enterNoLock​(@Nullable
                                                           @Nullable CacheOperationContext opCtx)
        Parameters:
        opCtx - Operation context to guard.
        Returns:
        Previous operation context set on this thread.
      • isStopped

        public boolean isStopped()
      • stopped

        public void stopped()
      • onDisconnected

        public void onDisconnected​(IgniteFuture<?> reconnectFut)
        Parameters:
        reconnectFut - Reconnect future.
      • writeLock

        public void writeLock()
      • writeUnlock

        public void writeUnlock()
      • reconnected

        public void reconnected​(boolean stopped)
        Parameters:
        stopped - Cache stopped flag.
      • onStopped

        public void onStopped()