public static class Invocable.InvocableExecutor
extends java.lang.Object
implements java.util.concurrent.Executor
Constructor and Description |
---|
InvocableExecutor(java.util.concurrent.Executor executor,
Invocable.InvocationType preferred) |
InvocableExecutor(java.util.concurrent.Executor executor,
Invocable.InvocationType preferredInvocationForExecute,
Invocable.InvocationType preferredInvocationForIvoke) |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.Runnable task) |
void |
execute(java.lang.Runnable task,
Invocable.InvocationType preferred) |
Invocable.InvocationType |
getPreferredInvocationType() |
void |
invoke(java.lang.Runnable task) |
boolean |
tryExecute(java.lang.Runnable task) |
boolean |
tryExecute(java.lang.Runnable task,
Invocable.InvocationType preferred) |
public InvocableExecutor(java.util.concurrent.Executor executor, Invocable.InvocationType preferred)
public InvocableExecutor(java.util.concurrent.Executor executor, Invocable.InvocationType preferredInvocationForExecute, Invocable.InvocationType preferredInvocationForIvoke)
public Invocable.InvocationType getPreferredInvocationType()
public void invoke(java.lang.Runnable task)
public void execute(java.lang.Runnable task)
execute
in interface java.util.concurrent.Executor
public void execute(java.lang.Runnable task, Invocable.InvocationType preferred)
public boolean tryExecute(java.lang.Runnable task)
public boolean tryExecute(java.lang.Runnable task, Invocable.InvocationType preferred)
Copyright © 1995–2017 Webtide. All rights reserved.