public enum AgentType extends Enum<AgentType>
Agent types and associated facilities.| Enum Constant and Description |
|---|
CRON
An object that runs a particular task at specified times and dates, similar to the Cron
service available in Unix/Linux systems.
|
TIMER
An object that runs a particular task periodically, given a configurable interval in
seconds, minutes, or hours.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultInterval()
Returns the default interval for an agent type.
|
Function<AgentConfiguration,AbstractAgent> |
getFactoryFunction()
Returns the default factory
Function to be applied for instantiating new agents
of this type. |
static AgentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentType TIMER
public static final AgentType CRON
public static AgentType[] values()
for (AgentType c : AgentType.values()) System.out.println(c);
public static AgentType 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 String getDefaultInterval()
public Function<AgentConfiguration,AbstractAgent> getFactoryFunction()
Function to be applied for instantiating new agents
of this type.FunctionCopyright © 2022. All rights reserved.