TracePropagatingExecutorService
public
final
class
TracePropagatingExecutorService
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.tracing.TracePropagatingExecutorService |
執行緒服務,可在傳播追蹤內容時,將工作轉送至基礎實作項目。
這可在提交的工作中使用 CloseableTraceScope 等追蹤設施。
摘要
公用方法 | |
|---|---|
boolean
|
awaitTermination(long timeout, TimeUnit unit)
|
static
TracePropagatingExecutorService
|
create(ExecutorService delegate)
建立會將執行委派作業委派給指定委派執行者的 |
void
|
execute(Runnable command)
|
<T>
|
invokeAll(
|
<T>
|
invokeAll(
|
<T>
T
|
invokeAny(
|
<T>
T
|
invokeAny(
|
boolean
|
isShutdown()
|
boolean
|
isTerminated()
|
void
|
shutdown()
|
|
shutdownNow()
|
|
submit(Runnable task)
|
<T>
|
submit(Runnable task, T result)
|
<T>
|
submit(
|
受保護的方法 | |
|---|---|
<T>
|
wrapTasks(
|
公用方法
awaitTermination
public boolean awaitTermination (long timeout,
TimeUnit unit)| 參數 | |
|---|---|
timeout |
long |
unit |
TimeUnit |
| 傳回 | |
|---|---|
boolean |
|
create
public static TracePropagatingExecutorService create (ExecutorService delegate)
建立會將執行委派作業委派給指定委派執行者的 ERROR(/ExecutorService)。
請注意,傳播至工作項的活動追蹤記錄,是執行程序方法呼叫時的活動記錄。這是因為 TF 會在開始叫用並附加追蹤記錄之前,先建構大部分物件。
| 參數 | |
|---|---|
delegate |
ExecutorService |
| 傳回 | |
|---|---|
TracePropagatingExecutorService |
|
執行
public void execute (Runnable command)
| 參數 | |
|---|---|
command |
Runnable |
invokeAll
publicinvokeAll ( tasks, long timeout, TimeUnit unit)
| 參數 | |
|---|---|
tasks |
|
timeout |
long |
unit |
TimeUnit |
| 傳回 | |
|---|---|
|
|
invokeAll
publicinvokeAll ( tasks)
| 參數 | |
|---|---|
tasks |
|
| 傳回 | |
|---|---|
|
|
invokeAny
public T invokeAny (tasks)
| 參數 | |
|---|---|
tasks |
|
| 傳回 | |
|---|---|
T |
|
invokeAny
public T invokeAny (tasks, long timeout, TimeUnit unit)
| 參數 | |
|---|---|
tasks |
|
timeout |
long |
unit |
TimeUnit |
| 傳回 | |
|---|---|
T |
|
isShutdown
public boolean isShutdown ()
| 傳回 | |
|---|---|
boolean |
|
isTerminated
public boolean isTerminated ()
| 傳回 | |
|---|---|
boolean |
|
關機
public void shutdown ()
shutdownNow
publicshutdownNow ()
| 傳回 | |
|---|---|
|
|
提交
publicsubmit (Runnable task)
| 參數 | |
|---|---|
task |
Runnable |
| 傳回 | |
|---|---|
|
|
提交
publicsubmit (Runnable task, T result)
| 參數 | |
|---|---|
task |
Runnable |
result |
T |
| 傳回 | |
|---|---|
|
|
提交
publicsubmit ( task)
| 參數 | |
|---|---|
task |
|
| 傳回 | |
|---|---|
|
|
受保護的方法
wrapTasks
protectedwrapTasks ( tasks)
| 參數 | |
|---|---|
tasks |
|
| 傳回 | |
|---|---|
|
|