@Override public void close() throws Exception { multiMap.clear(); multiMap = null; }
private void clear(Exchange exchange) { this.cache.clear(); }
public void clearStore() throws StorageException { cache.clear(); }
@ManagedAnnotation(value = "clear", operation = true) public void clear() { managedObject.clear(); }
@ManagedAnnotation(value = "clear", operation = true) public void clear() { managedObject.clear(); }
public void clear() { if(guavaMultiMap != null) guavaMultiMap.clear(); else hcMultiMap.clear(); }
@Override public boolean delete(String outerKey) { if(outerKey != null) return false; if (outerKey.isEmpty()) { return true; } if (getMultiMap().get(outerKey) != null) { getMultiMap().clear(); } return true; } }
protected void handleClear(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().clear(); } else if (iteratorStr.startsWith("m.")) { getMap().clear(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().clear(); } else if (iteratorStr.startsWith("q.")) { getQueue().clear(); } else if (iteratorStr.startsWith("l.")) { getList().clear(); } println("Cleared all."); }
protected void handleClear(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().clear(); } else if (iteratorStr.startsWith("m.")) { getMap().clear(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().clear(); } else if (iteratorStr.startsWith("q.")) { getQueue().clear(); } else if (iteratorStr.startsWith("l.")) { getList().clear(); } println("Cleared all."); }
protected void handleClear(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().clear(); } else if (iteratorStr.startsWith("m.")) { getMap().clear(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().clear(); } else if (iteratorStr.startsWith("q.")) { getQueue().clear(); } else if (iteratorStr.startsWith("l.")) { getList().clear(); } println("Cleared all."); }
protected void handleClear(String[] args) { String iteratorStr = args[0]; if (iteratorStr.startsWith("s.")) { getSet().clear(); } else if (iteratorStr.startsWith("m.")) { getMap().clear(); } else if (iteratorStr.startsWith("mm.")) { getMultiMap().clear(); } else if (iteratorStr.startsWith("q.")) { getQueue().clear(); } else if (iteratorStr.startsWith("l.")) { getList().clear(); } println("Cleared all."); }
@Before public void setUp() { this.distributedMap.clear(); this.distributedBulkMap.clear(); this.distributedList.clear(); this.distributedBulkList.clear(); this.distributedSet.clear(); this.distributedBulkSet.clear(); this.distributedQueue.clear(); this.distributedBulkQueue.clear(); this.multiMap.clear(); this.replicatedMap.clear(); this.bulkReplicatedMap.clear(); }
public static void testEventDrivenForMultiMapEntryEvents( final MultiMap<Integer, HazelcastIntegrationTestUser> multiMap, final PollableChannel channel, final String cacheName) { multiMap.put(1, new HazelcastIntegrationTestUser(1, "TestName1", "TestSurname1")); Message<?> msg = channel.receive(TIMEOUT); verifyEntryEvent(msg, cacheName, EntryEventType.ADDED); multiMap.put(1, new HazelcastIntegrationTestUser(1, "TestName1", "TestSurnameUpdated")); msg = channel.receive(TIMEOUT); verifyEntryEvent(msg, cacheName, EntryEventType.ADDED); multiMap.remove(1); msg = channel.receive(TIMEOUT); verifyEntryEvent(msg, cacheName, EntryEventType.REMOVED); msg = channel.receive(TIMEOUT); verifyEntryEvent(msg, cacheName, EntryEventType.REMOVED); multiMap.put(2, new HazelcastIntegrationTestUser(2, "TestName2", "TestSurname2")); msg = channel.receive(TIMEOUT); verifyEntryEvent(msg, cacheName, EntryEventType.ADDED); multiMap.clear(); msg = channel.receive(TIMEOUT); verifyEntryEvent(msg, cacheName, EntryEventType.CLEAR_ALL); }