Package org.apache.ignite.cache
Interface CacheStoreSession
public interface CacheStoreSession
Cache store session.
Each operation which is executed within session bounds must preserve transaction (ACID) semantics.
-
Method Summary
Modifier and TypeMethodDescriptionfinishAsync(boolean commit) Finish the current session.Get attached transaction.voidsetTransaction(Transaction transaction) Attaches corresponding Ignite transaction to a session.
-
Method Details
-
getTransaction
Transaction getTransaction()Get attached transaction.- Returns:
- The transaction.
-
setTransaction
Attaches corresponding Ignite transaction to a session.- Parameters:
transaction- The transaction.
-
finishAsync
Finish the current session.- Parameters:
commit- Commit or not changes.
-