public class EthereumClientConnector extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumClientConnector(EthereumWalletService ethereumWalletService,
org.exoplatform.container.ExoContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeSettings(GlobalSettings newGlobalSettings)
Change currently used globalSettings and re-init
|
protected String |
getConnectionFailedMessage() |
int |
getConnectionInterruptionCount() |
long |
getLastBlockNumberOnStartupTime() |
long |
getLastWatchedBlockNumber() |
int |
getTransactionQueueMaxSize() |
int |
getTransactionQueueSize() |
org.web3j.protocol.core.methods.response.TransactionReceipt |
getTransactionReceipt(String transactionHash)
Get transaction receipt
|
int |
getTransactionsCountPerBlock() |
int |
getWatchedTransactionCount() |
long |
getWatchingBlockchainStartTime() |
String |
getWebsocketProviderURL()
Returns used Websocket URL
|
void |
setLastWatchedBlockNumber(long lastWatchedBlockNumber) |
void |
start() |
void |
startListeninigToTransactions()
Add subscription on Ethereum network to listen on all new transactions
|
void |
stop() |
void |
stopListeninigToTransactions()
Unsubscribe from Ethereum network transaction events
|
public EthereumClientConnector(EthereumWalletService ethereumWalletService, org.exoplatform.container.ExoContainer container)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void startListeninigToTransactions()
public void stopListeninigToTransactions()
public org.web3j.protocol.core.methods.response.TransactionReceipt getTransactionReceipt(String transactionHash) throws InterruptedException, ExecutionException
transactionHash - ExecutionExceptionInterruptedExceptionpublic String getWebsocketProviderURL()
public void changeSettings(GlobalSettings newGlobalSettings)
newGlobalSettings - public long getLastWatchedBlockNumber()
public int getConnectionInterruptionCount()
public void setLastWatchedBlockNumber(long lastWatchedBlockNumber)
public int getTransactionQueueSize()
public long getWatchingBlockchainStartTime()
public int getWatchedTransactionCount()
public int getTransactionQueueMaxSize()
public long getLastBlockNumberOnStartupTime()
public int getTransactionsCountPerBlock()
protected String getConnectionFailedMessage()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.