public abstract class DroolsExecutor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DroolsExecutor.EmptyResult |
static class |
DroolsExecutor.Leader |
static class |
DroolsExecutor.Slave |
Modifier and Type | Field and Description |
---|---|
protected Queue<Object> |
executionResults |
Constructor and Description |
---|
DroolsExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
appendSideEffects(Queue<Object> sideEffects) |
abstract void |
execute(Runnable f) |
abstract <R> R |
execute(Supplier<R> f) |
Queue<Object> |
getAndReset() |
static DroolsExecutor |
getInstance() |
abstract boolean |
isLeader() |
static void |
setAsLeader() |
static void |
setAsReplica() |
public static DroolsExecutor getInstance()
public static void setAsLeader()
public static void setAsReplica()
public abstract boolean isLeader()
public abstract void execute(Runnable f)
public abstract <R> R execute(Supplier<R> f)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.