#646 - REFACTOR: L2 cache towards remote data grid caches (like Ignite etc)

This commit is contained in:
Robin Bygrave committed 2016-04-12 23:20:16 +12:00
1 parent a85f9c4be8
commit 2c6f637dab
49 files changed
+1255 -555

No files matched your search

@@ -5,6 +5,7 @@ import com.avaje.ebeaninternal.api.SpiTransaction;
import com.avaje.ebeaninternal.api.TransactionEvent;
import com.avaje.ebeaninternal.api.TransactionEventTable;
import com.avaje.ebeaninternal.api.TransactionEventTable.TableIUD;
import com.avaje.ebeaninternal.server.cache.CacheChangeSet;
import com.avaje.ebeanservice.docstore.api.DocStoreUpdates;
import com.avaje.ebeaninternal.server.cluster.ClusterManager;
import com.avaje.ebeaninternal.server.core.PersistRequestBean;
@@ -44,6 +45,8 @@ public final class PostCommitProcessing {
private final int txnDocStoreBatchSize;
private CacheChangeSet cacheChanges;
/**
* Create for an external modification.
*/
@@ -83,7 +86,7 @@ public final class PostCommitProcessing {
*/
void notifyLocalCache() {
processTableEvents(event.getEventTables());
event.notifyCache();
cacheChanges = event.buildCacheChanges();
}
/**
@@ -145,6 +148,9 @@ public final class PostCommitProcessing {
Runnable backgroundNotify() {
return new Runnable() {
public void run() {
if (cacheChanges != null) {
cacheChanges.apply();
}
localPersistListenersNotify();
notifyCluster();
processDocStoreUpdates();