Class GridCacheGateway<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheGateway<K,V>
-
@GridToStringExclude public class GridCacheGateway<K,V> extends Object
Cache gateway.
-
-
Constructor Summary
Constructors Constructor Description GridCacheGateway(GridCacheContext<K,V> ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenter()Enter a cache call.@Nullable CacheOperationContextenter(@Nullable CacheOperationContext opCtx)booleanenterIfNotStopped()Enter a cache call.booleanenterIfNotStoppedNoLock()Enter a cache call without lock.@Nullable CacheOperationContextenterNoLock(@Nullable CacheOperationContext opCtx)booleanisStopped()voidleave()Leave a cache call entered byenter()method.voidleave(CacheOperationContext prev)voidleaveNoLock()Leave a cache call entered byenterNoLock(org.apache.ignite.internal.processors.cache.CacheOperationContext)method.voidleaveNoLock(CacheOperationContext prev)voidonDisconnected(IgniteFuture<?> reconnectFut)voidonStopped()voidreconnected(boolean stopped)voidstopped()voidwriteLock()voidwriteUnlock()
-
-
-
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:
Trueif enter successful,falseif the cache or the node was stopped.
-
enterIfNotStoppedNoLock
public boolean enterIfNotStoppedNoLock()
Enter a cache call without lock.- Returns:
Trueif enter successful,falseif the cache or the node was stopped.
-
leaveNoLock
public void leaveNoLock()
Leave a cache call entered byenterNoLock(org.apache.ignite.internal.processors.cache.CacheOperationContext)method.
-
leave
public void leave()
Leave a cache call entered byenter()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.
-
leave
public void leave(CacheOperationContext prev)
- Parameters:
prev- Previous.
-
leaveNoLock
public void leaveNoLock(CacheOperationContext prev)
- Parameters:
prev- Previous.
-
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()
-
-