coldbox.system.async.proxies

Class Runnable

lucee.Component
    extended by coldbox.system.async.proxies.BaseProxy
      extended by coldbox.system.async.proxies.Runnable

Functional Interface that maps to java.lang.Runnable See https://docs.oracle.com/javase/8/docs/api/java/lang/Runnable.html

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any target, [any method='run'], [boolean debug='false'], [boolean loadAppContext='true'])
          Constructor.
    Method Summary
    any run()
     
    Methods inherited from class coldbox.system.async.proxies.BaseProxy
    err, getCFMLContext, getConcurrentEngineLockName, getCurrentThread, getDebug, getLoadAppContext, getSystem, getTarget, getThread, getThreadName, loadContext, out, setDebug, setLoadAppContext, setSystem, setTarget, setThread, unLoadContext
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any target, [any method='run'], [boolean debug='false'], [boolean loadAppContext='true'])

    Constructor

    Parameters:
    target - The lambda or closure that will be the task
    method - An optional method in case the supplier is a CFC instead of a closure
    debug - Add debugging or not
    loadAppContext - By default, we load the Application context into the running thread. If you don't need it, then don't load it.

    Method Detail

    run

    public any run()