/** * Undeploy all queued up closures. * * @param ctx Cache context. */ public void unwind(GridCacheContext ctx) { List<CA> q; synchronized (undeploys) { q = undeploys.remove(ctx.name()); } if (q == null) return; int cnt = 0; for (CA c : q) { c.apply(); cnt++; } if (log.isDebugEnabled()) log.debug("Unwound undeploys count: " + cnt); }
/** * Undeploy all queued up closures. * * @param ctx Cache context. */ public void unwind(GridCacheContext ctx) { List<CA> q; synchronized (undeploys) { q = undeploys.remove(ctx.name()); } if (q == null) return; int cnt = 0; for (CA c : q) { c.apply(); cnt++; } if (log.isDebugEnabled()) log.debug("Unwound undeploys count: " + cnt); }