All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lumongo.server.hazelcast.UnloadIndexTask Maven / Gradle / Ivy

The newest version!
package org.lumongo.server.hazelcast;

import java.io.Serializable;
import java.util.concurrent.Callable;

public class UnloadIndexTask implements Callable, Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private final int hazelcastPort;
	
	private final String indexName;
	private final boolean delete;

	public UnloadIndexTask(int hazelcastPort, String indexName, boolean delete) {
		this.hazelcastPort = hazelcastPort;
		this.indexName = indexName;
		this.delete = delete;
	}
	
	@Override
	public Void call() throws Exception {

		HazelcastManager.getHazelcastManager(hazelcastPort).unloadIndex(indexName, delete);
		
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy