@ClientCacheEntryCreated public void handleCreatedEvent(ClientCacheEntryCreatedEvent<?> e) { //no-op }
@ClientCacheEntryCreated public void entryCreated(ClientCacheEntryCreatedEvent<String> event) { System.out.printf("Created %s%n", event.getKey()); }
@ClientCacheEntryCreated @SuppressWarnings("unused") public void handleCreatedEvent(ClientCacheEntryCreatedEvent e) { createdEvents.add(e); }
@ClientCacheEntryCreated public void created(ClientCacheEntryCreatedEvent event) { String key = event.getKey().toString(); hotrodEventReceived(key); }
@ClientCacheEntryCreated public void processEvent(ClientCacheEntryCreatedEvent<Object> event) { logger.trace("Received ClientEvent [{}]", event); dispatch(event.getType().toString(), false, cacheName, event.getKey()); }
@ClientCacheEntryCreated public void processCacheEntryCreated(ClientCacheEntryCustomEvent<byte[]> event) { emitSessionCreatedEvent(readEvent(event).getValue()); }
@ClientCacheEntryCreated @ClientCacheEntryModified @ClientCacheEntryRemoved @SuppressWarnings("unused") public void handleCreatedEvent(ClientEvent e) { events.add(e); }
@ClientCacheEntryCreated public void remoteCacheEntryCreated(ClientCacheEntryCreatedEvent event) { if (! (event.getKey() instanceof String)) { return; } String httpSessionId = (String) event.getKey(); if (idMapper.hasSession(httpSessionId)) { // Ignore local events generated by remote store LOG.tracev("IGNORING remoteCacheEntryCreated {0}", httpSessionId); return; } this.executor.submit(new Runnable() { @Override public void run() { String[] value = ssoCache.get((String) httpSessionId); if (value != null) { String ssoId = value[0]; String principal = value[1]; LOG.tracev("remoteCacheEntryCreated {0}:{1}", httpSessionId, ssoId); idMapper.map(ssoId, principal, httpSessionId); } else { LOG.tracev("remoteCacheEntryCreated {0}", event.getKey()); } } }); }
@ClientCacheEntryCreated @ClientCacheEntryModified @ClientCacheEntryRemoved @SuppressWarnings("unused") public void handleCustomEvent(ClientCacheEntryCustomEvent<CustomEvent> e) { customEvents.add(e.getEventData()); }
@ClientCacheEntryCreated public void created(ClientCacheEntryCreatedEvent event) { K key = (K) event.getKey(); if (shouldUpdateLocalCache(event.getType(), key, event.isCommandRetried())) { this.executor.submit(event, () -> { // Doesn't work due https://issues.jboss.org/browse/ISPN-9323. Needs to explicitly retrieve and create it //cache.get(key); createRemoteEntityInCache(key, event.getVersion()); }); } }
@ClientCacheEntryCreated @SuppressWarnings("unused") public void handleClientCacheEntryCreatedEvent(ClientCacheEntryCustomEvent event) throws IOException { FilterResult r = ProtobufUtil.fromWrappedByteArray(serializationContext, (byte[]) event.getEventData()); createEvents.add(r); log.debugf("handleClientCacheEntryCreatedEvent instance=%s projection=%s sortProjection=%s\n", r.getInstance(), r.getProjection() == null ? null : Arrays.asList(r.getProjection()), r.getSortProjection() == null ? null : Arrays.asList(r.getSortProjection())); }
@ClientCacheEntryCreated @ClientCacheEntryModified @ClientCacheEntryRemoved @ClientCacheEntryExpired @ClientCacheFailover public void processClientEvent(ClientEvent event) { if (isAccepted(event.getType().toString())) { infinispanConsumer.processEvent(event.getType().toString(), false, cacheName, getKey(event), getEventData(event)); } }
@ClientCacheEntryCreated @ClientCacheEntryModified @ClientCacheEntryRemoved