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

com.tvd12.ezydata.elasticsearch.EzyEsCaller Maven / Gradle / Ivy

The newest version!
package com.tvd12.ezydata.elasticsearch;

import com.tvd12.ezydata.elasticsearch.action.EzyEsAction;
import com.tvd12.ezydata.elasticsearch.callback.EzyEsActionCallback;
import com.tvd12.ezyfox.util.EzyShutdownable;
import com.tvd12.ezyfox.util.EzyStartable;

@SuppressWarnings("rawtypes")
public interface EzyEsCaller extends EzyStartable, EzyShutdownable {

     T sync(EzyEsAction action);

    void async(EzyEsAction action, EzyEsActionCallback callback);

    default void async(EzyEsAction action) {
        async(action, null);
    }

    EzyEsClientProxy getClientProxy();

    default  T call(EzyEsAction action) {
        return sync(action);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy