public enum PrivateChannelWorkerRequirement extends Enum<PrivateChannelWorkerRequirement>
| Condition | Result |
|---|---|
At least one IChannelComponent claims to use private worker by RequirePrivateChannelWorker
|
Use private Worker (always) |
More IChannelComponents prefer to use same worker (PreferPrivateChannelWorker) then not (PreferSharedChannelWorker)
|
Use private Worker (if no IChannelComponent claims to use private worker by RequirePrivateChannelWorker)
|
More IChannelComponents prefer to use shared worker (PreferSharedChannelWorker) then not (PreferPrivateChannelWorker)
|
Use shared Worker (if no IChannelComponent claims to use private worker by RequirePrivateChannelWorker)
|
No IChannelComponents has a preference or a requirement / all IChannelComponents declare NoPreferenceOrRequirement
|
Use shared Worker |
IChannelComponent use thread sensitive libraries like Mozilla Rhino.| Enum Constant and Description |
|---|
NoPreferenceOrRequirement
It does not matter if queue use private or shared queue worker
|
PreferPrivateChannelWorker
Preference to use private queue worker.
|
PreferSharedChannelWorker
Preference to use shared queue worker.
|
RequirePrivateChannelWorker
IChannelComponent requires a private queue worker. |
| Modifier and Type | Method and Description |
|---|---|
static PrivateChannelWorkerRequirement |
findByInteger(int value)
search privateQueueWorker enum represents by
value |
static PrivateChannelWorkerRequirement |
findByName(String name)
search privateQueueWorker enum represents by
name |
static Set<PrivateChannelWorkerRequirement> |
getAll()
getter for all privateQueueWorker
|
static PrivateChannelWorkerRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrivateChannelWorkerRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrivateChannelWorkerRequirement PreferSharedChannelWorker
public static final PrivateChannelWorkerRequirement NoPreferenceOrRequirement
public static final PrivateChannelWorkerRequirement PreferPrivateChannelWorker
public static final PrivateChannelWorkerRequirement RequirePrivateChannelWorker
IChannelComponent requires a private queue worker.public static PrivateChannelWorkerRequirement[] values()
for (PrivateChannelWorkerRequirement c : PrivateChannelWorkerRequirement.values()) System.out.println(c);
public static PrivateChannelWorkerRequirement 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 static Set<PrivateChannelWorkerRequirement> getAll()
public static PrivateChannelWorkerRequirement findByInteger(int value)
valuevalue - integer value of privateQueueWorkervaluepublic static PrivateChannelWorkerRequirement findByName(String name)
namename - of privateQueueWorkernameCopyright © 2020. All rights reserved.