org.lumongo.server.hazelcast.UnloadIndexTask Maven / Gradle / Ivy
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;
public UnloadIndexTask(int hazelcastPort, String indexName) {
this.hazelcastPort = hazelcastPort;
this.indexName = indexName;
}
@Override
public Void call() throws Exception {
HazelcastManager.getHazelcastManager(hazelcastPort).unloadIndex(indexName);
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy