public class Agent extends ARef
Modifier and Type | Field and Description |
---|---|
static ExecutorService |
pooledExecutor |
static ExecutorService |
soloExecutor |
Constructor and Description |
---|
Agent(Object state) |
Agent(Object state,
IPersistentMap meta) |
Modifier and Type | Method and Description |
---|---|
Object |
deref() |
Object |
dispatch(IFn fn,
ISeq args,
Executor exec) |
Throwable |
getError() |
IFn |
getErrorHandler() |
Keyword |
getErrorMode() |
int |
getQueueCount() |
static int |
releasePendingSends() |
Object |
restart(Object newState,
boolean clearActions) |
void |
setErrorHandler(IFn f) |
void |
setErrorMode(Keyword k) |
static void |
shutdown() |
addWatch, getValidator, getWatches, notifyWatches, removeWatch, setValidator
alterMeta, meta, resetMeta
public static volatile ExecutorService pooledExecutor
public static volatile ExecutorService soloExecutor
public Agent(Object state)
public Agent(Object state, IPersistentMap meta)
public static void shutdown()
public Object deref()
public Throwable getError()
public void setErrorMode(Keyword k)
public Keyword getErrorMode()
public void setErrorHandler(IFn f)
public IFn getErrorHandler()
public int getQueueCount()
public static int releasePendingSends()
Copyright © 2019. All rights reserved.