@org.infinispan.notifications.cachelistener.annotation.TransactionCompleted public void handle(TransactionCompletedEvent e) { handler.handle(e); } }
@Override @TransactionCompleted public void fire(TransactionCompletedEvent<K, V> payload) { super.fire(new CDITransactionCompletedEvent(payload)); } }
@Override @TransactionCompleted public void fire(TransactionCompletedEvent<K, V> payload) { super.fire(new CDITransactionCompletedEvent(payload)); } }
@TransactionCompleted public void txCompleted(TransactionCompletedEvent tce) { if (!tce.isPre()) log.add(TxEvent.COMPLETED); } }
@TransactionCompleted public void endTransaction(TransactionCompletedEvent event) { Queue<Event> events = map.remove(event.getGlobalTransaction()); if (events == null || ! event.isTransactionSuccessful()) { return; } if (event.isOriginLocal()) { // Local events are processed by local HTTP session listener return; } for (final Event e : events) { processEvent(e); } }
@TransactionCompleted public void endTransaction(TransactionCompletedEvent event) { if (event.getGlobalTransaction() == null) { return; } Queue<Event> events = map.remove(event.getGlobalTransaction().globalId()); if (events == null || ! event.isTransactionSuccessful()) { return; } for (final Event e : events) { processEvent(e); } }
@CacheEntryActivated @CacheEntryCreated @CacheEntriesEvicted @CacheEntryInvalidated @CacheEntryLoaded @CacheEntryModified @CacheEntryPassivated @CacheEntryRemoved @CacheEntryVisited @TransactionCompleted @TransactionRegistered @CacheEntryExpired public void handle(Event e) { events.add(e); if (e.isPre()) receivedPre = true; else receivedPost = true; invocationCount++; } }
@CacheEntryActivated @CacheEntryCreated @CacheEntriesEvicted @CacheEntryInvalidated @CacheEntryLoaded @CacheEntryModified @CacheEntryPassivated @CacheEntryRemoved @CacheEntryVisited @TransactionCompleted @TransactionRegistered public void handle(Event e) { events.add(e); if (e.isPre()) receivedPre = true; else receivedPost = true; invocationCount++; } }
@CacheEntryActivated @CacheEntryCreated @CacheEntriesEvicted @CacheEntryInvalidated @CacheEntryLoaded @CacheEntryModified @CacheEntryPassivated @CacheEntryRemoved @CacheEntryVisited @TransactionCompleted @TransactionRegistered public void handle(Event e) { try { Object value = e.getCache().getAdvancedCache().withFlags(Flag.SKIP_LISTENER_NOTIFICATION).get("key"); log.debugf("Event=%s, value=%s", e, value); } catch (Throwable throwable) { list.add(throwable); } }