org.apache.wicket.protocol.ws.concurrent
Interface Executor


public interface Executor

An abstraction over all available executor services. The application may use Executor or Akka/Scala 2.10 ExecutionContext, or anything that serves the same purpose.


Method Summary
<T> T
call(Callable<T> callable)
          Computes a result, or throws an exception if unable to do so.
 void run(Runnable command)
          Runs a simple task that doesn't return a result
 

Method Detail

run

void run(Runnable command)
Runs a simple task that doesn't return a result

See Also:
Thread.run()

call

<T> T call(Callable<T> callable)
       throws Exception
Computes a result, or throws an exception if unable to do so.

Returns:
computed result
Throws:
Exception - if unable to compute a result


Copyright © 2006–2013 Apache Software Foundation. All rights reserved.