Class TransactionPusherService
java.lang.Object
org.fisco.bcos.sdk.transaction.pusher.TransactionPusherService
- All Implemented Interfaces:
TransactionPusherInterface
public class TransactionPusherService extends java.lang.Object implements TransactionPusherInterface
-
Constructor Summary
Constructors Constructor Description TransactionPusherService(Client client)
create the TransactionPusherService -
Method Summary
Modifier and Type Method Description Client
getClient()
TransactionReceipt
push(java.lang.String signedTransaction)
Call
push(java.lang.String from, java.lang.String to, java.lang.String encodedFunction)
java.util.concurrent.CompletableFuture<TransactionReceipt>
pushAsync(java.lang.String signedTransaction)
void
pushAsync(java.lang.String signedTransactionData, TransactionCallback callback)
void
pushOnly(java.lang.String signedTransaction)
void
setClient(Client client)
-
Constructor Details
-
TransactionPusherService
create the TransactionPusherService- Parameters:
client
- the client object responsible for send transaction
-
-
Method Details
-
pushOnly
public void pushOnly(java.lang.String signedTransaction)- Specified by:
pushOnly
in interfaceTransactionPusherInterface
-
push
- Specified by:
push
in interfaceTransactionPusherInterface
-
push
- Specified by:
push
in interfaceTransactionPusherInterface
-
pushAsync
- Specified by:
pushAsync
in interfaceTransactionPusherInterface
-
pushAsync
public java.util.concurrent.CompletableFuture<TransactionReceipt> pushAsync(java.lang.String signedTransaction)- Specified by:
pushAsync
in interfaceTransactionPusherInterface
-
getClient
- Returns:
- the client
-
setClient
- Parameters:
client
- the client to set
-