public enum SpProtocolManager extends Enum<SpProtocolManager>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<T extends TransportProtocol> |
findDefinition(T transportProtocol) |
List<SpProtocolDefinitionFactory<? extends TransportProtocol>> |
getAvailableProtocols() |
void |
register(SpProtocolDefinitionFactory<? extends TransportProtocol> protocolDefinition) |
static SpProtocolManager |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpProtocolManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpProtocolManager INSTANCE
public static SpProtocolManager[] values()
for (SpProtocolManager c : SpProtocolManager.values()) System.out.println(c);
public static SpProtocolManager 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 void register(SpProtocolDefinitionFactory<? extends TransportProtocol> protocolDefinition)
public List<SpProtocolDefinitionFactory<? extends TransportProtocol>> getAvailableProtocols()
public <T extends TransportProtocol> Optional<SpProtocolDefinition<T>> findDefinition(T transportProtocol)
Copyright © 2018. All rights reserved.