public enum ServiceState extends Enum<ServiceState>
A SourceHandler
or HybridHandler
can only publish updates,
and a SinkHandler
or HybridHandler
will only receive updates
when the service state is ACTIVE
.
Enum Constant and Description |
---|
ACTIVE
|
INITIAL
This is the initial state of a service before the
ServiceHandler.start() method has been called. |
PAUSED
This is the state when a service has been
paused by user request, the framework has become disconnected from the
Diffusion, or the service handler has reported an error. |
STOPPED
This is the state when the application has been stopped or the service
has been removed.
|
Modifier and Type | Method and Description |
---|---|
static ServiceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState INITIAL
ServiceHandler.start()
method has been called.public static final ServiceState ACTIVE
public static final ServiceState PAUSED
paused
by user request, the framework has become disconnected from the
Diffusion, or the service handler has reported an error.public static final ServiceState STOPPED
This is the terminal state for a service. It can no longer be started or resumed.
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 nullCopyright © 2024 DiffusionData Limited. All rights reserved.