org.polkadot.direct.IRpcFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polkadot-java Show documentation
Show all versions of polkadot-java Show documentation
Java Polkadot API, this is a clone of https://github.com/polkadot-java/api
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();
}
}