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

org.polkadot.direct.IRpcFunction Maven / Gradle / Ivy

The newest version!
package org.polkadot.direct;

import com.onehilltech.promises.Promise;

public interface IRpcFunction extends IFunction {

    interface Unsubscribe {
        T unsubscribe();
    }

    interface SubscribeCallback {
        void callback(T t);
    }

    Promise invoke(Object... params);

    default boolean isSubscribe() {
        return false;
    }

    default Promise unsubscribe(int subscriptionId) {
        //TODO 2019-06-11 11:00
        throw new UnsupportedOperationException();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy