@Test public void testGet() { System.out.println("get"); HazelcastSessionDataStorage instance = new HazelcastSessionDataStorage(Hazelcast.newHazelcastInstance()); SessionData sessionData = instance.create(); String sessionId = sessionData.getId(); sessionData.put(KEY, VALUE); instance.save(sessionData); SessionData saved = instance.get(sessionId); assertEquals(sessionData, saved); String value1 = sessionData.get(KEY); String value2 = saved.get(KEY); assertEquals(value1, value2); }
@Override public SessionData get(String sessionId) { return this.sessions.get(sessionId); }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public SessionData get(String sessionId) { return this.sessions.get(sessionId); } }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public SessionData get(String sessionId) { return this.sessions.get(sessionId); } HazelcastSessionDataStorage(HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(String name, HazelcastInstance hazelcastInstance);  HazelcastSessionDataStorage(IMap<String, SessionData> sessions); }
HazelcastSessionDataStorage implements SessionDataStorage { @Override public SessionData get(String sessionId) { return this.sessions.get(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 SessionData get(String sessionId) { return this.sessions.get(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);  }