com.javaranch.common
Class DataPool

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.javaranch.common.DataPool
All Implemented Interfaces:
java.lang.Runnable

public class DataPool
extends java.lang.Thread

- - - - - - - - - - - - - - - - -

Copyright (c) 1999-2004 Paul Wheaton

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Author:
Paul Wheaton

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static java.lang.String add(java.lang.Object data)
          Object in, token out - use the token to get the object back.
static void delete(java.lang.String token)
           
static java.lang.Object get(java.lang.String token)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

add

public static java.lang.String add(java.lang.Object data)
Object in, token out - use the token to get the object back.

Parameters:
data -
Returns:

get

public static java.lang.Object get(java.lang.String token)
Parameters:
token -
Returns:

delete

public static void delete(java.lang.String token)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright ©2004 Paul Wheaton All Rights Reserved