use of org.apache.ignite.internal.util.GridSetWrapper in project ignite by apache.
the class IgniteTxAdapter method sessionEnd.
/**
* @param stores Store managers.
* @param commit Commit flag.
* @throws IgniteCheckedException In case of error.
*/
protected void sessionEnd(final Collection<CacheStoreManager> stores, boolean commit) throws IgniteCheckedException {
Iterator<CacheStoreManager> it = stores.iterator();
Set<CacheStore> visited = new GridSetWrapper<>(new IdentityHashMap<CacheStore, Object>());
while (it.hasNext()) {
CacheStoreManager store = it.next();
store.sessionEnd(this, commit, !it.hasNext(), !visited.add(store.store()));
}
}
Aggregations