java.util.Timer is meant to execute a task at a particular time or after a certain delay.

TimeoutController is meant to interrupt(timeout) a process that takes more than a specific amount of time. It is used in HttpClient in one case to timeout opening a socket, as this is not natively supported pre JRE 1.4.

Mike

_matthewHawthorne wrote:
What does this class do that java.util.Timer and java.util.TimerTask
aren't capable of doing?




On Wed, 2003-07-02 at 03:42, Steven Caswell wrote:


Looks interesting to me. I think we should not hold up
progress on 2.0, but work toward putting in TimeoutController
somewhere along the line.

---- Original message ----

Date: Wed, 02 Jul 2003 08:27:12 +0200
From: Tomasz Pik <[EMAIL PROTECTED]> Subject: [lang] TimeoutController from HttpClient To: Jakarta Commons Developers List

<[EMAIL PROTECTED]>


Lang developers,

I know that Lang 2.0 is oing to be 'finished' but I'd like
to propose to add TimeoutController[1] somewhere into Lang
codebase.

It's very simple but useful class and Lang is (as I know
Commons packages) is the best location for such code.

Also I think that such addition will follow the HttpClient
developers idea of moving not directly HttpClient related
code into separate package.

Regards,
Tomek Pik

[1] http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/util/TimeoutController.html



---------------------------------------------------------------------
To unsubscribe, e-mail:

[EMAIL PROTECTED]


For additional commands, e-mail:

[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to