/** * Creates a new instance of {@code CallableBackgroundInitializer} and sets * the {@code Callable} to be executed in a background thread. * * @param call the {@code Callable} (must not be <b>null</b>) * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call) { checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and * initializes it with the {@code Callable} to be executed in a background * thread and the {@code ExecutorService} for managing the background * execution. * * @param call the {@code Callable} (must not be <b>null</b>) * @param exec an external {@code ExecutorService} to be used for task * execution * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call, final ExecutorService exec) { super(exec); checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and sets * the {@code Callable} to be executed in a background thread. * * @param call the {@code Callable} (must not be <b>null</b>) * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call) { checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and sets * the {@code Callable} to be executed in a background thread. * * @param call the {@code Callable} (must not be <b>null</b>) * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call) { checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and sets * the {@code Callable} to be executed in a background thread. * * @param call the {@code Callable} (must not be <b>null</b>) * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call) { checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and * initializes it with the {@code Callable} to be executed in a background * thread and the {@code ExecutorService} for managing the background * execution. * * @param call the {@code Callable} (must not be <b>null</b>) * @param exec an external {@code ExecutorService} to be used for task * execution * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call, final ExecutorService exec) { super(exec); checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and * initializes it with the {@code Callable} to be executed in a background * thread and the {@code ExecutorService} for managing the background * execution. * * @param call the {@code Callable} (must not be <b>null</b>) * @param exec an external {@code ExecutorService} to be used for task * execution * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call, final ExecutorService exec) { super(exec); checkCallable(call); callable = call; }
/** * Creates a new instance of {@code CallableBackgroundInitializer} and * initializes it with the {@code Callable} to be executed in a background * thread and the {@code ExecutorService} for managing the background * execution. * * @param call the {@code Callable} (must not be <b>null</b>) * @param exec an external {@code ExecutorService} to be used for task * execution * @throws IllegalArgumentException if the {@code Callable} is <b>null</b> */ public CallableBackgroundInitializer(final Callable<T> call, final ExecutorService exec) { super(exec); checkCallable(call); callable = call; }