public enum DefaultCommitHandlers extends Enum<DefaultCommitHandlers> implements CommitHandlerFactory
DefaultCommitHandlers.valueOf("NONE").| Enum Constant and Description |
|---|
MSPID_SCOPE_ALLFORTX
Wait to receive commit events from all currently responding peers in the user's organization after submitting
a transaction.
|
MSPID_SCOPE_ANYFORTX
Wait to receive a commit event from any currently responding peer in the user's organization after submitting
a transaction.
|
NETWORK_SCOPE_ALLFORTX
Wait to receive commit events from all currently responding peers in the network after submitting a transaction.
|
NETWORK_SCOPE_ANYFORTX
Wait to receive a commit event from any currently responding peer in the network after submitting a transaction.
|
NONE
Do not wait for any commit events to be received from peers after submitting a transaction.
|
PREFER_MSPID_SCOPE_ALLFORTX
Wait to receive commit events from all currently responding peers in the user's organization after submitting
a transaction.
|
PREFER_MSPID_SCOPE_ANYFORTX
Wait to receive a commit event from any currently responding peer in the user's organization after submitting
a transaction.
|
| Modifier and Type | Method and Description |
|---|---|
CommitHandler |
create(String transactionId,
Network network)
Factory function to create a commit handler instance.
|
static DefaultCommitHandlers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultCommitHandlers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultCommitHandlers NONE
public static final DefaultCommitHandlers MSPID_SCOPE_ALLFORTX
public static final DefaultCommitHandlers NETWORK_SCOPE_ALLFORTX
public static final DefaultCommitHandlers PREFER_MSPID_SCOPE_ALLFORTX
public static final DefaultCommitHandlers MSPID_SCOPE_ANYFORTX
public static final DefaultCommitHandlers NETWORK_SCOPE_ANYFORTX
public static final DefaultCommitHandlers PREFER_MSPID_SCOPE_ANYFORTX
public static DefaultCommitHandlers[] values()
for (DefaultCommitHandlers c : DefaultCommitHandlers.values()) System.out.println(c);
public static DefaultCommitHandlers valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic CommitHandler create(String transactionId, Network network)
CommitHandlerFactorycreate in interface CommitHandlerFactorytransactionId - Transaction for which the instance is to handle commit events.network - Network on which the transaction is invoked.Copyright © 2023. All rights reserved.