@org.infinispan.notifications.cachelistener.annotation.TransactionRegistered public void handle(TransactionRegisteredEvent e) { handler.handle(e); } }
@TransactionRegistered public void startTransaction(TransactionRegisteredEvent event) { map.put(event.getGlobalTransaction(), new ConcurrentLinkedQueue<Event>()); }
@Override @TransactionRegistered public void fire(TransactionRegisteredEvent<K, V> payload) { super.fire(new CDITransactionRegisteredEvent(payload)); } }
@Override @TransactionRegistered public void fire(TransactionRegisteredEvent<K, V> payload) { super.fire(new CDITransactionRegisteredEvent(payload)); } }
@TransactionRegistered public void startTransaction(TransactionRegisteredEvent event) { if (event.getGlobalTransaction() == null) { return; } map.put(event.getGlobalTransaction().globalId(), new ConcurrentLinkedQueue<Event>()); }
@TransactionRegistered public void startTx(TransactionRegisteredEvent tre) { if (!tre.isPre()) log.add(TxEvent.STARTED); }
@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 @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) { 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); } }