public enum StoppedDispatcherLeaderProcess extends Enum<StoppedDispatcherLeaderProcess>
DispatcherLeaderProcess
implementation which is stopped. This class is useful as the
initial state of the DefaultDispatcherRunner
.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
closeAsync()
Trigger the closing of the resource and return the corresponding close future.
|
CompletableFuture<DispatcherGateway> |
getDispatcherGateway() |
CompletableFuture<String> |
getLeaderAddressFuture() |
UUID |
getLeaderSessionId() |
CompletableFuture<ApplicationStatus> |
getShutDownFuture() |
void |
start() |
static StoppedDispatcherLeaderProcess |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StoppedDispatcherLeaderProcess[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
close
public static final StoppedDispatcherLeaderProcess INSTANCE
public static StoppedDispatcherLeaderProcess[] values()
for (StoppedDispatcherLeaderProcess c : StoppedDispatcherLeaderProcess.values()) System.out.println(c);
public static StoppedDispatcherLeaderProcess 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 start()
public UUID getLeaderSessionId()
public CompletableFuture<DispatcherGateway> getDispatcherGateway()
public CompletableFuture<String> getLeaderAddressFuture()
public CompletableFuture<ApplicationStatus> getShutDownFuture()
public CompletableFuture<Void> closeAsync()
AutoCloseableAsync
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.