Skip to content

Commit

Permalink
IGNITE-891 - Cache store improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Kulichenko committed May 15, 2015
1 parent 0c52898 commit 79258ba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,21 @@
package org.apache.ignite.cache.store;

/**
* TODO
* Store session listener.
*/
public interface CacheStoreSessionListener {
/**
* On session start callback.
*
* @param ses Current session.
*/
public void onSessionStart(CacheStoreSession ses);

/**
* On session end callback.
*
* @param ses Current session.
* @param commit {@code True} if transaction should commit, {@code false} for rollback.
*/
public void onSessionEnd(CacheStoreSession ses, boolean commit);
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.*;

/**
* TODO
* Cache store session listener based on JDBC connection.
*/
public class CacheStoreSessionJdbcListener implements CacheStoreSessionListener {
/** Session key for JDBC connection. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.util.*;

/**
* TODO
* Cache store session listener based on Hibernate session.
*/
public class CacheStoreSessionHibernateListener implements CacheStoreSessionListener {
/** Session key for JDBC connection. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import javax.cache.integration.*;

/**
* TODO
* Cache store session listener based on Spring cache manager.
*/
public class CacheStoreSessionSpringListener implements CacheStoreSessionListener {
/** Session key for transaction status. */
Expand Down

0 comments on commit 79258ba

Please sign in to comment.