@Override public void onEvent(Event event, Object source, Object data) { this.cache.remove(((AbstractDocumentEvent) event).getEventFilter().getFilter()); }
@Override public boolean matches(Object otherEvent) { boolean matches = super.matches(otherEvent); if (matches) { DocumentRollingBackEvent documentRollingBackEvent = (DocumentRollingBackEvent) otherEvent; matches = revision == null || revision.equals(documentRollingBackEvent.getRevision()); } return matches; } }
@Override public boolean matches(Object otherEvent) { boolean matches = super.matches(otherEvent); if (matches) { DocumentRolledBackEvent documentRolledBackEvent = (DocumentRolledBackEvent) otherEvent; matches = revision == null || revision.equals(documentRolledBackEvent.getRevision()); } return matches; } }
@Override public void onEvent(Event event, Object source, Object data) { this.cache.remove(((AbstractDocumentEvent) event).getEventFilter().getFilter()); }