cgl.narada.transport.threadpool
Class NetworkTask

java.lang.Object
  extended by cgl.narada.transport.threadpool.NetworkTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ReceiveTask, SendTask

public abstract class NetworkTask
extends Object
implements Runnable

A lightweight interface to group network tasks.


Field Summary
static int RECEIVE_TASK
           
static int SEND_TASK
           
 
Constructor Summary
NetworkTask()
           
 
Method Summary
abstract  String getIdentifier()
          Retrieve the identifier associated with the network task
 int getTaskType()
           
 void setTaskType(int taskType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

SEND_TASK

public static final int SEND_TASK
See Also:
Constant Field Values

RECEIVE_TASK

public static final int RECEIVE_TASK
See Also:
Constant Field Values
Constructor Detail

NetworkTask

public NetworkTask()
Method Detail

getIdentifier

public abstract String getIdentifier()
Retrieve the identifier associated with the network task

Returns:
The identifier associated with the network task.

setTaskType

public void setTaskType(int taskType)

getTaskType

public int getTaskType()


For comments and suggestions please send e-mail to The NaradaBrokering Project