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 ofQueryParams
io.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 keyOracleQueriesResult
blockingGetOracleQueries(java.lang.String publicKey)
synchronously get oracle queries by public key; providing default values ofQueryParams
OracleQueriesResult
blockingGetOracleQueries(java.lang.String publicKey, QueryParams queryParams)
synchronously get oracle queries by public keyOracleQueryResult
blockingGetOracleQuery(java.lang.String pubkey, java.lang.String queryId)
synchronously get an oracle query by public key and query IDRegisteredOracleResult
blockingGetRegisteredOracle(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:OracleService
asynchronously get an oracle by its public key- Specified by:
asyncGetRegisteredOracle
in interfaceOracleService
- Parameters:
publicKey
- The public key of the oracle (required)- Returns:
- asynchronous result handler (RxJava Single) for
RegisteredOracleResult
-
blockingGetRegisteredOracle
Description copied from interface:OracleService
synchronously get an oracle by its public key- Specified by:
blockingGetRegisteredOracle
in interfaceOracleService
- Parameters:
publicKey
- The public key of the oracle (required)- Returns:
- result of
RegisteredOracleResult
-
asyncGetOracleQueries
Description copied from interface:OracleService
asynchronously get oracle queries by public key; providing default values ofQueryParams
- Specified by:
asyncGetOracleQueries
in 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:OracleService
asynchronously get oracle queries by public key- Specified by:
asyncGetOracleQueries
in 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:OracleService
synchronously get oracle queries by public key; providing default values ofQueryParams
- Specified by:
blockingGetOracleQueries
in 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:OracleService
synchronously get oracle queries by public key- Specified by:
blockingGetOracleQueries
in 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:OracleService
asynchronously get an oracle query by public key and query ID- Specified by:
asyncGetOracleQuery
in 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:OracleService
synchronously get an oracle query by public key and query ID- Specified by:
blockingGetOracleQuery
in interfaceOracleService
- Parameters:
pubkey
- The public key of the oracle (required)queryId
- The ID of the query (required)- Returns:
- result of
OracleQueryResult
-