Class OracleServiceImpl
java.lang.Object
com.kryptokrauts.aeternity.sdk.service.oracle.impl.OracleServiceImpl
- All Implemented Interfaces:
OracleService
public class OracleServiceImpl extends java.lang.Object implements OracleService
-
Constructor Summary
Constructors Constructor Description OracleServiceImpl() -
Method Summary
Modifier and Type Method Description io.reactivex.Single<OracleQueriesResult>asyncGetOracleQueries(java.lang.String publicKey)asynchronously get oracle queries by public key; providing default values ofQueryParamsio.reactivex.Single<OracleQueriesResult>asyncGetOracleQueries(java.lang.String publicKey, QueryParams queryParams)asynchronously get oracle queries by public keyio.reactivex.Single<OracleQueryResult>asyncGetOracleQuery(java.lang.String pubkey, java.lang.String queryId)asynchronously get an oracle query by public key and query IDio.reactivex.Single<RegisteredOracleResult>asyncGetRegisteredOracle(java.lang.String publicKey)asynchronously get an oracle by its public keyOracleQueriesResultblockingGetOracleQueries(java.lang.String publicKey)synchronously get oracle queries by public key; providing default values ofQueryParamsOracleQueriesResultblockingGetOracleQueries(java.lang.String publicKey, QueryParams queryParams)synchronously get oracle queries by public keyOracleQueryResultblockingGetOracleQuery(java.lang.String pubkey, java.lang.String queryId)synchronously get an oracle query by public key and query IDRegisteredOracleResultblockingGetRegisteredOracle(java.lang.String publicKey)synchronously get an oracle by its public keyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OracleServiceImpl
public OracleServiceImpl()
-
-
Method Details
-
asyncGetRegisteredOracle
public io.reactivex.Single<RegisteredOracleResult> asyncGetRegisteredOracle(java.lang.String publicKey)Description copied from interface:OracleServiceasynchronously get an oracle by its public key- Specified by:
asyncGetRegisteredOraclein interfaceOracleService- Parameters:
publicKey- The public key of the oracle (required)- Returns:
- asynchronous result handler (RxJava Single) for
RegisteredOracleResult
-
blockingGetRegisteredOracle
Description copied from interface:OracleServicesynchronously get an oracle by its public key- Specified by:
blockingGetRegisteredOraclein interfaceOracleService- Parameters:
publicKey- The public key of the oracle (required)- Returns:
- result of
RegisteredOracleResult
-
asyncGetOracleQueries
Description copied from interface:OracleServiceasynchronously get oracle queries by public key; providing default values ofQueryParams- Specified by:
asyncGetOracleQueriesin interfaceOracleService- Parameters:
publicKey- The public key of the oracle- Returns:
- asynchronous result handler (RxJava Single) for
OracleQueriesResult
-
asyncGetOracleQueries
public io.reactivex.Single<OracleQueriesResult> asyncGetOracleQueries(java.lang.String publicKey, QueryParams queryParams)Description copied from interface:OracleServiceasynchronously get oracle queries by public key- Specified by:
asyncGetOracleQueriesin interfaceOracleService- Parameters:
publicKey- The public key of the oraclequeryParams- optional query params (from, limit, type)- Returns:
- asynchronous result handler (RxJava Single) for
OracleQueriesResult
-
blockingGetOracleQueries
Description copied from interface:OracleServicesynchronously get oracle queries by public key; providing default values ofQueryParams- Specified by:
blockingGetOracleQueriesin interfaceOracleService- Parameters:
publicKey- The public key of the oracle- Returns:
- result of
OracleQueriesResult
-
blockingGetOracleQueries
public OracleQueriesResult blockingGetOracleQueries(java.lang.String publicKey, QueryParams queryParams)Description copied from interface:OracleServicesynchronously get oracle queries by public key- Specified by:
blockingGetOracleQueriesin interfaceOracleService- Parameters:
publicKey- The public key of the oraclequeryParams- optional query params (from, limit, type)- Returns:
- result of
OracleQueriesResult
-
asyncGetOracleQuery
public io.reactivex.Single<OracleQueryResult> asyncGetOracleQuery(java.lang.String pubkey, java.lang.String queryId)Description copied from interface:OracleServiceasynchronously get an oracle query by public key and query ID- Specified by:
asyncGetOracleQueryin interfaceOracleService- Parameters:
pubkey- The public key of the oracle (required)queryId- The ID of the query (required)- Returns:
- asynchronous result handler (RxJava Single) for
OracleQueryResult
-
blockingGetOracleQuery
Description copied from interface:OracleServicesynchronously get an oracle query by public key and query ID- Specified by:
blockingGetOracleQueryin interfaceOracleService- Parameters:
pubkey- The public key of the oracle (required)queryId- The ID of the query (required)- Returns:
- result of
OracleQueryResult
-