2 * Copyright (c) 2014 Cable Television Laboratories, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.pcmm.concurrent;
11 import java.util.concurrent.Callable;
15 public interface IWorker extends Runnable {
18 * defines the task to be performed by this worker
22 void task(Callable<?> c);
25 * defines wait time before start working on the task
29 void shouldWait(int t);
32 * ends the current working task.