public class DistributedWorkmanager<T extends DistributedWorkmanager<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DistributedWorkmanager.DistributedWorkmanagerResources
Child mutators for DistributedWorkmanager
|
static class |
DistributedWorkmanager.Policy |
static class |
DistributedWorkmanager.Selector |
Constructor and Description |
---|
DistributedWorkmanager(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Boolean |
elytronEnabled()
Enables Elytron security for this workmanager.
|
T |
elytronEnabled(Boolean value)
Enables Elytron security for this workmanager.
|
String |
getKey() |
T |
longRunningThreads(List<LongRunningThreads> value)
Add all LongRunningThreads objects to this subresource
|
T |
longRunningThreads(LongRunningThreads value)
Add the LongRunningThreads object to the list of subresources
|
T |
longRunningThreads(LongRunningThreadsSupplier supplier)
Install a supplied LongRunningThreads object to the list of subresources
|
T |
longRunningThreads(String childKey)
Create and configure a LongRunningThreads object to the list of
subresources
|
T |
longRunningThreads(String childKey,
LongRunningThreadsConsumer consumer)
Create and configure a LongRunningThreads object to the list of
subresources
|
String |
name()
The name of the DistributedWorkManager
|
T |
name(String value)
The name of the DistributedWorkManager
|
DistributedWorkmanager.Policy |
policy()
The policy decides when to redistribute a Work instance
|
T |
policy(DistributedWorkmanager.Policy value)
The policy decides when to redistribute a Work instance
|
T |
policyOption(String key,
Object value)
List of policy's options key/value pairs
|
Map |
policyOptions()
List of policy's options key/value pairs
|
T |
policyOptions(Map value)
List of policy's options key/value pairs
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
DistributedWorkmanager.Selector |
selector()
The selector decides to which nodes in the network to redistribute the
Work instance to
|
T |
selector(DistributedWorkmanager.Selector value)
The selector decides to which nodes in the network to redistribute the
Work instance to
|
T |
selectorOption(String key,
Object value)
List of selector's options key/value pairs
|
Map |
selectorOptions()
List of selector's options key/value pairs
|
T |
selectorOptions(Map value)
List of selector's options key/value pairs
|
T |
shortRunningThreads(List<ShortRunningThreads> value)
Add all ShortRunningThreads objects to this subresource
|
T |
shortRunningThreads(ShortRunningThreads value)
Add the ShortRunningThreads object to the list of subresources
|
T |
shortRunningThreads(ShortRunningThreadsSupplier supplier)
Install a supplied ShortRunningThreads object to the list of subresources
|
T |
shortRunningThreads(String childKey)
Create and configure a ShortRunningThreads object to the list of
subresources
|
T |
shortRunningThreads(String childKey,
ShortRunningThreadsConsumer consumer)
Create and configure a ShortRunningThreads object to the list of
subresources
|
DistributedWorkmanager.DistributedWorkmanagerResources |
subresources() |
public DistributedWorkmanager(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public DistributedWorkmanager.DistributedWorkmanagerResources subresources()
public T longRunningThreads(List<LongRunningThreads> value)
value
- List of LongRunningThreads objects.public T longRunningThreads(LongRunningThreads value)
value
- The LongRunningThreads to addpublic T longRunningThreads(String childKey, LongRunningThreadsConsumer consumer)
key
- The key for the LongRunningThreads resourceconfig
- The LongRunningThreadsConsumer to usepublic T longRunningThreads(String childKey)
key
- The key for the LongRunningThreads resourcepublic T longRunningThreads(LongRunningThreadsSupplier supplier)
public T shortRunningThreads(List<ShortRunningThreads> value)
value
- List of ShortRunningThreads objects.public T shortRunningThreads(ShortRunningThreads value)
value
- The ShortRunningThreads to addpublic T shortRunningThreads(String childKey, ShortRunningThreadsConsumer consumer)
key
- The key for the ShortRunningThreads resourceconfig
- The ShortRunningThreadsConsumer to usepublic T shortRunningThreads(String childKey)
key
- The key for the ShortRunningThreads resourcepublic T shortRunningThreads(ShortRunningThreadsSupplier supplier)
public Boolean elytronEnabled()
public T elytronEnabled(Boolean value)
public String name()
public DistributedWorkmanager.Policy policy()
public T policy(DistributedWorkmanager.Policy value)
public Map policyOptions()
public T policyOption(String key, Object value)
public DistributedWorkmanager.Selector selector()
public T selector(DistributedWorkmanager.Selector value)
public Map selectorOptions()
Copyright © 2020 JBoss by Red Hat. All rights reserved.