Java Code Examples for com.hazelcast.core.EntryEvent#getValue()
The following examples show how to use
com.hazelcast.core.EntryEvent#getValue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClusteredConcurrentIndexedCollection.java From GreenSummer with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void entryAdded(EntryEvent<K, O> event) { if (isRemoteEvent(event)) { log.trace("Entry Added: {}", event); ClusteredConcurrentIndexedCollection.this.notifyAddition(event.getValue()); ClusteredConcurrentIndexedCollection.super.add(event.getValue()); } }
Example 2
Source File: ClusteredConcurrentIndexedCollection.java From GreenSummer with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void entryUpdated(EntryEvent<K, O> event) { if (isRemoteEvent(event)) { log.trace("Entry Updated: {}", event); ClusteredConcurrentIndexedCollection.this.notifyRemoval(event.getOldValue()); ClusteredConcurrentIndexedCollection.super.remove(event.getOldValue()); ClusteredConcurrentIndexedCollection.this.notifyAddition(event.getValue()); ClusteredConcurrentIndexedCollection.super.add(event.getValue()); } }
Example 3
Source File: ClusteredConcurrentIndexedCollection.java From GreenSummer with GNU Lesser General Public License v2.1 | 5 votes |
@Override public void entryEvicted(EntryEvent<K, O> event) { if (isRemoteEvent(event)) { log.trace("Entry Evicted: {}", event); ClusteredConcurrentIndexedCollection.this.notifyRemoval(event.getValue()); ClusteredConcurrentIndexedCollection.super.remove(event.getValue()); } }
Example 4
Source File: CommandListener.java From hazelcast-jet-demos with Apache License 2.0 | 5 votes |
private void handle(EntryEvent<String, List<String>> arg0) throws Exception { log.info("'{}' '{}'", arg0.getKey(), arg0.getValue()); String noun = arg0.getKey(); List<String> params = arg0.getValue(); String verb = params.get(0); if (verb.equalsIgnoreCase(Constants.COMMAND_VERB_START)) { this.handleStart(noun, (params.size() == 1 ? null : params.get(1))); } else { log.error("Unknown command verb '{}'", verb); } }
Example 5
Source File: HazelcastIndexedSessionRepository.java From spring-session with Apache License 2.0 | 5 votes |
@Override public void entryAdded(EntryEvent<String, MapSession> event) { MapSession session = event.getValue(); if (session.getId().equals(session.getOriginalId())) { if (logger.isDebugEnabled()) { logger.debug("Session created with id: " + session.getId()); } this.eventPublisher.publishEvent(new SessionCreatedEvent(this, session)); } }