public enum DefaultQueryHandlers extends Enum<DefaultQueryHandlers> implements QueryHandlerFactory
DefaultQueryHandlers.valueOf("MSPID_SCOPE_ROUND_ROBIN").| Enum Constant and Description |
|---|
MSPID_SCOPE_ROUND_ROBIN
For each subsequent query, the next peer in the list is used.
|
MSPID_SCOPE_SINGLE
The last peer that provided a successful response is used.
|
PREFER_MSPID_SCOPE_ROUND_ROBIN
For each subsequent query, the next peer in the list is used.
|
PREFER_MSPID_SCOPE_SINGLE
The last peer that provided a successful response is used.
|
| Modifier and Type | Method and Description |
|---|---|
QueryHandler |
create(Network network)
Factory function to create a query handler instance.
|
static DefaultQueryHandlers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultQueryHandlers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultQueryHandlers MSPID_SCOPE_SINGLE
public static final DefaultQueryHandlers MSPID_SCOPE_ROUND_ROBIN
public static final DefaultQueryHandlers PREFER_MSPID_SCOPE_SINGLE
public static final DefaultQueryHandlers PREFER_MSPID_SCOPE_ROUND_ROBIN
public static DefaultQueryHandlers[] values()
for (DefaultQueryHandlers c : DefaultQueryHandlers.values()) System.out.println(c);
public static DefaultQueryHandlers 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 QueryHandler create(Network network)
QueryHandlerFactorycreate in interface QueryHandlerFactorynetwork - Network on which the query is invoked.Copyright © 2023. All rights reserved.