Add missing license headers to packetcable-driver concurrent
[packetcable.git] / packetcable-driver / src / main / java / org / pcmm / concurrent / IWorker.java
1 /*
2  * Copyright (c) 2014 Cable Television Laboratories, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.pcmm.concurrent;
10
11 import java.util.concurrent.Callable;
12 /**
13  *
14  */
15 public interface IWorker extends Runnable {
16
17         /**
18          * defines the task to be performed by this worker
19          *
20          * @param c
21          */
22         void task(Callable<?> c);
23
24         /**
25          * defines wait time before start working on the task
26          *
27          * @param t
28          */
29         void shouldWait(int t);
30
31         /**
32          * ends the current working task.
33          */
34         void done();
35
36 }