geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qureshi, Affan" <aqure...@cars.com>
Subject [OT] RE: Thread pool strategy
Date Fri, 16 Jul 2004 19:26:40 GMT

On Wed, 14 Jul 2004, Geir Magnusson Jr wrote:

|
| On Jul 13, 2004, at 5:39 PM, toby cabot wrote:
|
| > On Tue, Jul 13, 2004 at 03:33:35PM -0400, Geir Magnusson Jr wrote:
| >> Is it really "now" as in "if you don't have to wait for a thread, do
| >> it
| >> - otherwise return w/ a status indicating now wasn't possible" or "now
| >> as in  "wait until there's a thread, do it, and then return to me"?
| >
| > three choices:
| >
| >   doWork() - "block until it's done"
| >   startWork() - "block until it starts and then return"
| >   scheduleWork() - "return now and do the work whenever."
| >
| > http://java.sun.com/j2ee/1.4/docs/api/javax/resource/spi/work/
| > WorkManager.html
|
| Thx.  needs one more :
|
| doWorkNow()

> startHardWork()
> doWorkSmarter()
> doSmartWork()
> scheduleWorkLater()
> weekendNow()
> Endre.sleep()

Endre.sleep() seems to a public static method, which means it can be called without any pre-conditions
:-O 

Mime
View raw message