@Override public boolean matches(InvalidationEvent event) { return _name.equals(event.getCache()); }
@Override public boolean matches(InvalidationEvent event) { return _name.equals(event.getCache()); }
private void notifyListeners(InvalidationEvent event) { // Call all the listeners. If any fail, propagate an exception so the caller discovers that some // listener has not been able to observe the new value. Throwable first = null; for (InvalidationListener listener : _listeners) { try { listener.handleInvalidation(event); } catch (Throwable t) { // Propagate the first exception, log the rest. if (first == null) { first = t; } else { _log.error("Exception handling cache invalidation event: {}", event.getCache(), t); } } } if (first != null) { throw Throwables.propagate(first); } }
private void notifyListeners(InvalidationEvent event) { // Call all the listeners. If any fail, propagate an exception so the caller discovers that some // listener has not been able to observe the new value. Throwable first = null; for (InvalidationListener listener : _listeners) { try { listener.handleInvalidation(event); } catch (Throwable t) { // Propagate the first exception, log the rest. if (first == null) { first = t; } else { _log.error("Exception handling cache invalidation event: {}", event.getCache(), t); } } } if (first != null) { throw Throwables.propagate(first); } }
form.putSingle("cache", event.getCache()); form.putSingle("scope", scope.name().toLowerCase()); if (event.hasKeys()) {
form.putSingle("cache", event.getCache()); form.putSingle("scope", scope.name().toLowerCase()); if (event.hasKeys()) {