com.msi.threadpuddle
Class Piddle

java.lang.Object
  |
  +--com.msi.threadpuddle.Piddle

public class Piddle
extends java.lang.Object

Piddle contains a thread and 'run' state for the thread supporting allocation of threads to jobs.


Field Summary
private  boolean idle
           
private  java.lang.Thread thread
           
 
Constructor Summary
Piddle(java.lang.Thread thread)
          Creates a new Piddle instance.
 
Method Summary
 java.lang.Thread getThread()
          Get the value of thread.
 boolean isIdle()
          Get the value of idle.
 void setIdle(boolean v)
          Set the value of idle.
 void setThread(java.lang.Thread v)
          Set the value of thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idle

private boolean idle

thread

private java.lang.Thread thread
Constructor Detail

Piddle

public Piddle(java.lang.Thread thread)
Creates a new Piddle instance.

Parameters:
thread - a Thread value
Method Detail

getThread

public java.lang.Thread getThread()
Get the value of thread.

Returns:
value of thread.

setThread

public void setThread(java.lang.Thread v)
Set the value of thread.

Parameters:
v - Value to assign to thread.

isIdle

public boolean isIdle()
Get the value of idle.

Returns:
value of idle.

setIdle

public void setIdle(boolean v)
Set the value of idle.

Parameters:
v - Value to assign to idle.


Copyright © 2001-2002 MileStone Solutions, Inc. All Rights Reserved.