@ApiAudience.Private @ApiStability.Unstable public class AergoClient extends AbstractAergoApi implements ChainIdHashHolder, java.io.Closeable
Modifier and Type | Field and Description |
---|---|
protected io.grpc.ManagedChannel |
channel |
protected ContextProvider |
contextProvider |
logger
Modifier and Type | Method and Description |
---|---|
void |
cacheChainIdHash(ChainIdHash chainIdHash)
Cache chain id hash.
|
void |
close() |
ChainIdHash |
getCachedChainIdHash()
Get cached chain id hash.
|
protected io.grpc.ManagedChannel |
getChannel() |
protected <T> T |
resolveInjection(T target) |
adapt, getAccountOperation, getBlockchainOperation, getBlockOperation, getCandidates, getContractOperation, getKeyStoreOperation, getTransactionOperation
protected final ContextProvider contextProvider
protected io.grpc.ManagedChannel channel
protected io.grpc.ManagedChannel getChannel()
protected <T> T resolveInjection(T target)
public ChainIdHash getCachedChainIdHash()
ChainIdHashHolder
getCachedChainIdHash
in interface ChainIdHashHolder
public void cacheChainIdHash(ChainIdHash chainIdHash)
ChainIdHashHolder
cacheChainIdHash
in interface ChainIdHashHolder
chainIdHash
- a chain id hashpublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable