SingleKeyNonTxInvocationContext ctx = (SingleKeyNonTxInvocationContext) invocationContextFactory
.createSingleKeyNonTxInvocationContext();
for (XSiteState siteState : chunk) {
interceptorChain.invoke(ctx, createPut(siteState));
ctx.resetState(); //re-use same context. Old context is not longer needed
if (trace) {
log.tracef("Successfully applied key'%s'", siteState);
}
}
if (debug) {