use of org.apache.ignite.cache.store.CacheStoreSessionListener in project ignite by apache.
the class GridCacheStoreManagerAdapter method sessionEnd.
/** {@inheritDoc} */
@Override
public final void sessionEnd(IgniteInternalTx tx, boolean commit, boolean last) throws IgniteCheckedException {
assert store != null;
sessionInit0(tx);
try {
if (sesLsnrs != null) {
for (CacheStoreSessionListener lsnr : sesLsnrs) lsnr.onSessionEnd(locSes, commit);
}
if (!sesHolder.get().ended(store))
store.sessionEnd(commit);
} catch (Throwable e) {
last = true;
throw e;
} finally {
if (last && sesHolder != null) {
sesHolder.set(null);
tx.removeMeta(SES_ATTR);
}
}
}
Aggregations