import com.hazelcast.core.Cluster;
import com.hazelcast.core.IAtomicReference;
import com.hazelcast.core.MemberSelector;
-import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.locks.Lock;
<E> IAtomicReference<E> getAtomicReference(String name);
- /**
- * Gets the set shared by the cluster and identified by name
- */
- <E> Set<E> getSet(String name);
-
- /**
- * Gets the list shared by the cluster and identified by name
- */
- <E> List<E> getList(String name);
-
- /**
- * Gets the map shared by the cluster and identified by name
- */
- <K, V> Map<K, V> getMap(String name);
-
/**
* Gets the replicated map shared by the cluster and identified by name.
* Result can be casted to {@link com.hazelcast.core.ReplicatedMap} if needed to
import com.hazelcast.core.IExecutorService;
import com.hazelcast.core.Member;
import com.hazelcast.core.MemberSelector;
-import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ExecutionException;
return hzInstance.getAtomicReference(name);
}
- @Override
- public <E> Set<E> getSet(String s) {
- return hzInstance.getSet(s);
- }
-
- @Override
- public <E> List<E> getList(String s) {
- return hzInstance.getList(s);
- }
-
- @Override
- public <K, V> Map<K, V> getMap(String s) {
- return hzInstance.getMap(s);
- }
-
@Override
public <K, V> Map<K, V> getReplicatedMap(String s) {
return hzInstance.getReplicatedMap(s);
assertThat(member.getAtomicReference("baz")).isNotNull();
assertThat(member.getLock("baz")).isNotNull();
assertThat(member.getReplicatedMap("baz")).isNotNull();
- assertThat(member.getList("baz")).isNotNull();
- assertThat(member.getMap("baz")).isNotNull();
- assertThat(member.getSet("baz")).isNotNull();
member.close();
}