@Override protected void handleEvent(CDOSessionInvalidationEvent event) throws Exception { CDOTransaction transaction = getTransaction(); if (event.getLocalTransaction() == transaction) { // Don't handle own changes return; } if (event.getBranch() != transaction.getBranch()) { // Don't handle changes in other branches return; } super.handleEvent(event); } }
protected void handleEvent(CDOSessionInvalidationEvent event) throws Exception { CDOChangeSetData copy = event.copy(); if (changeSetData == null) { changeSetData = copy; } else { changeSetData.merge(copy); } } }
@Override protected void handleEvent(CDOSessionInvalidationEvent event) throws Exception { if (event.getBranch() == getTransaction().getBranch()) { super.handleEvent(event); } } }