clojure.lang
Class Agent

java.lang.Object
  extended by clojure.lang.AReference
      extended by clojure.lang.ARef
          extended by clojure.lang.Agent
All Implemented Interfaces:
IDeref, IMeta, IRef, IReference

public class Agent
extends ARef


Field Summary
static ExecutorService pooledExecutor
           
static ExecutorService soloExecutor
           
 
Fields inherited from class clojure.lang.ARef
validator
 
Constructor Summary
Agent(Object state)
           
Agent(Object state, IPersistentMap meta)
           
 
Method Summary
 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()
           
 
Methods inherited from class clojure.lang.ARef
addWatch, getValidator, getWatches, notifyWatches, removeWatch, setValidator
 
Methods inherited from class clojure.lang.AReference
alterMeta, meta, resetMeta
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pooledExecutor

public static volatile ExecutorService pooledExecutor

soloExecutor

public static volatile ExecutorService soloExecutor
Constructor Detail

Agent

public Agent(Object state)

Agent

public Agent(Object state,
             IPersistentMap meta)
Method Detail

shutdown

public static void shutdown()

deref

public Object deref()

getError

public Throwable getError()

setErrorMode

public void setErrorMode(Keyword k)

getErrorMode

public Keyword getErrorMode()

setErrorHandler

public void setErrorHandler(IFn f)

getErrorHandler

public IFn getErrorHandler()

restart

public Object restart(Object newState,
                      boolean clearActions)

dispatch

public Object dispatch(IFn fn,
                       ISeq args,
                       Executor exec)

getQueueCount

public int getQueueCount()

releasePendingSends

public static int releasePendingSends()


Copyright © 2014. All Rights Reserved.