org.apache.wicket.protocol.ws
Class WebSocketSettings.SameThreadExecutor
java.lang.Object
org.apache.wicket.protocol.ws.WebSocketSettings.SameThreadExecutor
- All Implemented Interfaces:
- Executor
- Enclosing class:
- WebSocketSettings
public static class WebSocketSettings.SameThreadExecutor
- extends Object
- implements Executor
Simple executor that runs the tasks in the caller thread.
|
Method Summary |
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebSocketSettings.SameThreadExecutor
public WebSocketSettings.SameThreadExecutor()
run
public void run(Runnable command)
- Description copied from interface:
Executor
- Runs a simple task that doesn't return a result
- Specified by:
run in interface Executor
- See Also:
Thread.run()
call
public <T> T call(Callable<T> callable)
throws Exception
- Description copied from interface:
Executor
- Computes a result, or throws an exception if unable to do so.
- Specified by:
call in interface Executor
- Returns:
- computed result
- Throws:
Exception - if unable to compute a result
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.