public class AsyncExecutor
extends java.lang.Object
AsyncExecutor.RunnableEx
using a thread pool. Thrown exceptions are propagated by posting failure events of any
given type (default is ThrowableFailureEvent
).Modifier and Type | Class and Description |
---|---|
static class |
AsyncExecutor.Builder |
static interface |
AsyncExecutor.RunnableEx
Like
Runnable , but the run method may throw an exception. |
Modifier and Type | Method and Description |
---|---|
static AsyncExecutor.Builder |
builder() |
static AsyncExecutor |
create() |
void |
execute(AsyncExecutor.RunnableEx runnable)
Posts an failure event if the given
AsyncExecutor.RunnableEx throws an Exception. |
public static AsyncExecutor.Builder builder()
public static AsyncExecutor create()
public void execute(AsyncExecutor.RunnableEx runnable)
AsyncExecutor.RunnableEx
throws an Exception.Available under the Apache License, Version 2.0 - Copyright © 2012-2014 greenrobot.de. All Rights Reserved.