coldbox.system.async.proxies

Class Supplier

lucee.Component
    extended by coldbox.system.async.proxies.BaseProxy
      extended by coldbox.system.async.proxies.Supplier
Direct Known Subclasses:
Callable
Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any supplier, [any method='run'], [boolean debug='false'], [boolean loadAppContext='true'])
          Constructor.
    Method Summary
    any get()
         Functional interface for supplier to get a result.
     
    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 supplier, [any method='run'], [boolean debug='false'], [boolean loadAppContext='true'])

    Constructor

    Parameters:
    supplier - The lambda or closure that will supply the elements
    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

    get

    public any get()

    Functional interface for supplier to get a result See https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html