/** * Constructs a new ReplicatedHashMap with channel. Call {@link #start(long)} to start this map. */ public ReplicatedHashMap(JChannel channel) { this.channel=channel; this.map=new ConcurrentHashMap<>(); init(); }
/** * Constructs a new ReplicatedHashMap using provided map instance. */ public ReplicatedHashMap(ConcurrentMap<K,V> map, JChannel channel) { if(channel == null) throw new IllegalArgumentException("Cannot create ReplicatedHashMap with null channel"); if(map == null) throw new IllegalArgumentException("Cannot create ReplicatedHashMap with null map"); this.map=map; this.cluster_name=channel.getClusterName(); this.channel=channel; init(); }
/** * Constructs a new ReplicatedHashMap with channel. Call {@link #start(long)} to start this map. */ public ReplicatedHashMap(JChannel channel) { this.channel=channel; this.map=new ConcurrentHashMap<>(); init(); }
/** * Constructs a new ReplicatedHashMap using provided map instance. */ public ReplicatedHashMap(ConcurrentMap<K,V> map, JChannel channel) { if(channel == null) throw new IllegalArgumentException("Cannot create ReplicatedHashMap with null channel"); if(map == null) throw new IllegalArgumentException("Cannot create ReplicatedHashMap with null map"); this.map=map; this.cluster_name=channel.getClusterName(); this.channel=channel; init(); }
public ReplicatedHashMap(Channel channel, boolean persistent, long state_timeout) { this.cluster_name=channel.getClusterName(); this.channel=channel; this.persistent=persistent; init(state_timeout); }