@Override public <E> ISet<E> getSet(String name) { return delegatedInstance.getSet(name); }
@Override public <T> Set<T> getSet(String name) { return hazelcast.getSet(name); }
@Override public <E> ISet<E> getSet(String name) { return delegate.getSet(name); }
@Override public <E> ISet<E> getSet(String name) { return delegatedInstance.getSet(name); }
/** * Get a Set in Hazelcast. * * @param setName the Set name. * @return the Set in Hazelcast. */ @Override public Set getSet(String setName) { return instance.getSet(setName); }
/** * Returns a Set used as panel to publish log information of deployments. If {@link #getDeployErrorPanel(long)} can be * thought of as a "standardError", this would be a general "standardOut" logging facility for deployment processes. * The one publishing info here will normally be the {@link Deployer}. */ public ISet<String> getDeployLogPanel(long version) { return hz.getSet(GLOBAL_DEPLOY_LOG_PANEL + version); }
/** * Get a Set in Hazelcast. * * @param setName the Set name. * @return the Set in Hazelcast. */ @Override public Set getSet(String setName) { return instance.getSet(setName); }
public ISet<Object> getSet() { set = hazelcast.getSet(namespace); return set; }
public ISet<Object> getSet() { set = hazelcast.getSet(namespace); return set; }
@Override public <T> Set<T> getSet(String bucketName) throws UnsupportedOperationException, NullPointerException { requireNonNull(bucketName, "bucketName is required"); return hazelcastInstance.getSet(bucketName); }
@Override public <T> Set<T> getSet(String bucketName, Class<T> clazz) { requireNonNull(bucketName, "bucketName is required"); requireNonNull(clazz, "clazz is required"); return hazelcastInstance.getSet(bucketName); }
public static void main(String[] args) { HazelcastInstance hz = Hazelcast.newHazelcastInstance(); ISet<String> set = hz.getSet("set"); for (String s : set) { System.out.println(s); } System.out.println("Reading finished!"); } }
@Setup public void setUp() { map = targetInstance.getMap(name); uniqueStrings = targetInstance.getSet(name); }
@Override public <E> ISet<E> getSet(String name) { return getHazelcastInstance().getSet(name); }
/** * Shortcut for using the {@link #getDeployErrorPanel(long)} map. It puts a log message and it appends the current * date. */ public void logDeployMessage(long version, String logMessage) { hz.getSet(GLOBAL_DEPLOY_LOG_PANEL + version).add(dateFormat.format(new Date()) + " - " + logMessage); } }
@Produces public ISet produceSet( final ProviderContext context ) { final String name = retrieveSourceNameFrom( context ); final ISet set = hazelcast.getSet( name ); notifyDataWasProduced(set, ISet.class); return set; }
public HazelcastJobQueue(String name, HazelcastInstance hazelcast) { this.hazelcast = hazelcast; this.queueName = name; this.highQueue = hazelcast.getQueue(format("jobs-%s-high", name)); this.midQueue = hazelcast.getQueue(format("jobs-%s-mid", name)); this.lowQueue = hazelcast.getQueue(format("jobs-%s-low", name)); this.uniqueIds = hazelcast.getSet(format("uniqueids-%s", name)); this.maxQueueSize = hazelcast.getAtomicLong(format("maxsize-%s", name)); this.localJobs = new ConcurrentHashMap<>(); }
public HazelcastSetConsumer(HazelcastInstance hazelcastInstance, Endpoint endpoint, Processor processor, String cacheName) { super(hazelcastInstance, endpoint, processor, cacheName); ISet<Object> set = hazelcastInstance.getSet(cacheName); set.addItemListener(new CamelItemListener(this, cacheName), true); }
public static void main(String[] args) { HazelcastInstance hz = Hazelcast.newHazelcastInstance(); ISet<String> set = hz.getSet("set"); set.add("Tokyo"); set.add("Paris"); set.add("London"); set.add("New York"); System.out.println("Putting finished!"); } }
@Bean public ISet<HazelcastIntegrationTestUser> testDistributedSet() { return testHazelcastInstance().getSet("Test_Distributed_Set"); }