public static final class XAThreadPool.MultiRunner extends Object implements Runnable
Modifier and Type | Method and Description |
---|---|
Object |
execute(Callable callable)
Execute a Callable on the wrapped thread and return its result
|
void |
release()
Release the wrapped thread back the the containing thread pool
|
void |
run() |
public Object execute(Callable callable) throws ExecutionException, InterruptedException
callable
- The Callable to executeExecutionException
- thrown when something went wrong during executionInterruptedException
- thrown when the executing thread got interruptedpublic void release()
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.