@Test public void testDelete() { System.out.println("delete"); HazelcastSessionDataStorage instance = new HazelcastSessionDataStorage(Hazelcast.newHazelcastInstance()); SessionData sessionData = instance.create(); String sessionId = sessionData.getId(); sessionData.put(KEY, VALUE); instance.save(sessionData); instance.delete(sessionId); SessionData deleted = instance.get(sessionId); assertNull(deleted); }
@Override public void delete(String sessionId) { this.sessions.remove(sessionId); }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } HazelcastSessionDataStorage(HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(String name, HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(IMap<String, SessionData> sessions); }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } HazelcastSessionDataStorage(HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(String name, HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(IMap<String, SessionData> sessions); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId); }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.remove(sessionId); } HazelcastSessionDataStorage(HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(String name, HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(IMap<String, SessionData> sessions); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId);  }