Class AccountServiceImpl
- All Implemented Interfaces:
AccountService
public final class AccountServiceImpl extends java.lang.Object implements AccountService
-
Constructor Summary
Constructors Constructor Description AccountServiceImpl()
-
Method Summary
Modifier and Type Method Description io.reactivex.Single<AccountResult>
asyncGetAccount()
asynchronously get the accountio.reactivex.Single<AccountResult>
asyncGetAccount(java.lang.String base58PublicKey)
asynchronously get the accountio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce()
asynchronously given accounts next nonce using "max" strategyio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce(NextNonceStrategy nextNonceStrategy)
asynchronously given accounts next nonceio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce(java.lang.String base58PublicKey)
asynchronously given accounts next nonce using "max" strategyio.reactivex.Single<java.math.BigInteger>
asyncGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)
asynchronously given accounts next nonceAccountResult
blockingGetAccount()
synchronously get the accountAccountResult
blockingGetAccount(java.lang.String base58PublicKey)
synchronously get the accountjava.math.BigInteger
blockingGetNextNonce()
synchronously given accounts next nonce using "max" strategyjava.math.BigInteger
blockingGetNextNonce(NextNonceStrategy nextNonceStrategy)
synchronously given accounts next noncejava.math.BigInteger
blockingGetNextNonce(java.lang.String base58PublicKey)
synchronously given accounts next nonce using "max" strategyjava.math.BigInteger
blockingGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)
synchronously given accounts next nonceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AccountServiceImpl
public AccountServiceImpl()
-
-
Method Details
-
asyncGetAccount
Description copied from interface:AccountService
asynchronously get the accountusing the account for the KeyPair defined in the
ServiceConfiguration
- Specified by:
asyncGetAccount
in interfaceAccountService
- Returns:
- asynchronous result handler (RxJava Single) for
AccountResult
-
asyncGetAccount
Description copied from interface:AccountService
asynchronously get the accountimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Specified by:
asyncGetAccount
in interfaceAccountService
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- asynchronous result handler (RxJava Single) for
AccountResult
-
blockingGetAccount
Description copied from interface:AccountService
synchronously get the accountusing the account for the KeyPair defined in the
ServiceConfiguration
- Specified by:
blockingGetAccount
in interfaceAccountService
- Returns:
- the account wrapped in a single
AccountResult
-
blockingGetAccount
Description copied from interface:AccountService
synchronously get the accountusing Base58 encoding, see
EncodingType
,EncodingUtils
- Specified by:
blockingGetAccount
in interfaceAccountService
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- the account wrapped in a single
AccountResult
-
asyncGetNextNonce
public io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce()Description copied from interface:AccountService
asynchronously given accounts next nonce using "max" strategyusing the account for the KeyPair defined in the
ServiceConfiguration
- Specified by:
asyncGetNextNonce
in interfaceAccountService
- Returns:
- next nonce
-
asyncGetNextNonce
public io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce(NextNonceStrategy nextNonceStrategy)Description copied from interface:AccountService
asynchronously given accounts next nonceusing the account for the KeyPair defined in the
ServiceConfiguration
- Specified by:
asyncGetNextNonce
in interfaceAccountService
- Parameters:
nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-
asyncGetNextNonce
public io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce(java.lang.String base58PublicKey)Description copied from interface:AccountService
asynchronously given accounts next nonce using "max" strategyimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Specified by:
asyncGetNextNonce
in interfaceAccountService
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- next nonce
-
asyncGetNextNonce
public io.reactivex.Single<java.math.BigInteger> asyncGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)Description copied from interface:AccountService
asynchronously given accounts next nonceimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Specified by:
asyncGetNextNonce
in interfaceAccountService
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-
blockingGetNextNonce
public java.math.BigInteger blockingGetNextNonce()Description copied from interface:AccountService
synchronously given accounts next nonce using "max" strategyusing the account for the KeyPair defined in the
ServiceConfiguration
- Specified by:
blockingGetNextNonce
in interfaceAccountService
- Returns:
- next nonce
-
blockingGetNextNonce
Description copied from interface:AccountService
synchronously given accounts next nonceusing the account for the KeyPair defined in the
ServiceConfiguration
- Specified by:
blockingGetNextNonce
in interfaceAccountService
- Parameters:
nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-
blockingGetNextNonce
public java.math.BigInteger blockingGetNextNonce(java.lang.String base58PublicKey)Description copied from interface:AccountService
synchronously given accounts next nonce using "max" strategyimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Specified by:
blockingGetNextNonce
in interfaceAccountService
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)- Returns:
- next nonce
-
blockingGetNextNonce
public java.math.BigInteger blockingGetNextNonce(java.lang.String base58PublicKey, NextNonceStrategy nextNonceStrategy)Description copied from interface:AccountService
synchronously given accounts next nonceimport io.reactivex.Single; using Base58 encoding, see
EncodingType
,EncodingUtils
- Specified by:
blockingGetNextNonce
in interfaceAccountService
- Parameters:
base58PublicKey
- the encoded publicKey (ak_...)nextNonceStrategy
- the strategy to use, one of: max, continuity- Returns:
- next nonce
-