程序包 | 说明 |
---|---|
org.hyperledger.fabric.gateway |
This package provides the set of interfaces that enable a Java application to
interact with a Fabric blockchain network.
|
限定符和类型 | 方法和说明 |
---|---|
Gateway.Builder |
Gateway.Builder.commitHandler(CommitHandlerFactory commitHandler)
Optional - Allows an alternative commit handler to be specified.
|
Gateway.Builder |
Gateway.Builder.commitTimeout(long timeout,
TimeUnit timeUnit)
Optional - Set the default maximum time to wait for commit events to be received from peers after
submitting a transaction to the orderer.
|
static Gateway.Builder |
Gateway.createBuilder()
Creates a gateway builder which is used to configure the gateway options
prior to connecting to the Fabric network.
|
Gateway.Builder |
Gateway.Builder.discovery(boolean enabled)
Optional - Enable or disable service discovery for all transaction submissions for this gateway.
|
Gateway.Builder |
Gateway.Builder.identity(Identity identity)
Specifies the identity that is to be used to connect to the network.
|
Gateway.Builder |
Gateway.Builder.identity(Wallet wallet,
String id)
Specifies the identity that is to be used to connect to the network.
|
Gateway.Builder |
Gateway.Builder.networkConfig(InputStream config)
Specifies the common connection profile.
|
Gateway.Builder |
Gateway.Builder.networkConfig(Path config)
Specifies the path to the common connection profile.
|
Gateway.Builder |
Gateway.Builder.queryHandler(QueryHandlerFactory queryHandler)
Optional - Allows an alternative query handler to be specified.
|
Copyright © 2023. All rights reserved.