All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.nodeos.WorkItem
java.lang.Object
   |
   +----edu.utah.janos.nodeos.WorkItem

  Summary

public class  WorkItem
     extends java.lang.Object
{
          // Fields 3
     WorkItem next;
     WorkItem prev;
     private final Runnable workFunc;

          // Constructors 1
     public WorkItem(Runnable);

          // Methods 1
     final void doItem();
}

A queueable callback for a ThreadPool.

XXX this is a public class. It probably needs to have the constructor and a number of methods protected, or be made final.

XXX this is a really stupid class. Hopefully it will be sucked into the NodeOS...

Author:
Janos Ministry of Development


  Cross Reference

Returned By:
ThreadPool.dequeueWorkItem()





  Fields

· next

Summary  |  Top
   WorkItem next

The next WorkItem in the ThreadPool's queue of work items.

Manipulation of this field is protected by the ThreadPool's workLock.


· prev

Summary  |  Top
   WorkItem prev

The previous WorkItem in the ThreadPool's queue of work items.

Manipulation of this field is protected by the ThreadPool's workLock.


· workFunc

Summary  |  Top
   private final Runnable workFunc


  Constructors

· WorkItem

Summary  |  Top

   public WorkItem(Runnable r) 


  Methods

· doItem

Summary  |  Top
   final void doItem() 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7