/** * Enter a cache call. */ public void enter() { if (ctx.deploymentEnabled()) ctx.deploy().onEnter(); rwLock.readLock().lock(); checkState(true, true); }
/** * @param opCtx Cache operation context. */ private void onEnter(CacheOperationContext opCtx) { ctx.itHolder().checkWeakQueue(); if (ctx.deploymentEnabled()) ctx.deploy().onEnter(); if (opCtx != null) checkAtomicOpsInTx(opCtx); }
/** * Enters a call. * * @param resume Flag to indicate that resume operation in progress. */ private void enter(boolean resume) { if (!resume && state() == SUSPENDED) throw new IgniteException("Tx in SUSPENDED state. All operations except resume are prohibited."); if (cctx.deploymentEnabled()) cctx.deploy().onEnter(); try { cctx.kernalContext().gateway().readLock(); } catch (IllegalStateException | IgniteClientDisconnectedException e) { throw e; } catch (RuntimeException | Error e) { cctx.kernalContext().gateway().readUnlock(); throw e; } }
/** * Enter a cache call. */ public void enter() { if (ctx.deploymentEnabled()) ctx.deploy().onEnter(); rwLock.readLock().lock(); checkState(true, true); }
/** * @param opCtx Cache operation context. */ private void onEnter(CacheOperationContext opCtx) { ctx.itHolder().checkWeakQueue(); if (ctx.deploymentEnabled()) ctx.deploy().onEnter(); if (opCtx != null) checkAtomicOpsInTx(opCtx); }
/** * Enters a call. * * @param resume Flag to indicate that resume operation in progress. */ private void enter(boolean resume) { if (!resume && state() == SUSPENDED) throw new IgniteException("Tx in SUSPENDED state. All operations except resume are prohibited."); if (cctx.deploymentEnabled()) cctx.deploy().onEnter(); try { cctx.kernalContext().gateway().readLock(); } catch (IllegalStateException | IgniteClientDisconnectedException e) { throw e; } catch (RuntimeException | Error e) { cctx.kernalContext().gateway().readUnlock(); throw e; } }