Article View: borland.public.jbuilder.java.language
Article #19162Re: Pausing / Delaying Program Execution Help?
From: Marc Jourdenais
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
42 lines
1537 bytes
1537 bytes
ARRGH. I think I went temporarily brain-dead. A little too quick on the POST
trigger. I meant something like:
while (true)
{
// check mailbox
Thread.sleep(10000);
}
Sorry,
Marc
Marc Jourdenais wrote:
> Sterling,
>
> Have you tried:
>
> while (Thread.sleep(10000))
> {
> // check mailbox
> }
>
> - Marc
>
> Sterling Moses wrote:
>
> > I have a program which checks a POP3 box for email, when it sees there is
> > email waiting it parses this into a database.
> >
> > How can I suspend the program for a period of time and say have it check
> > every 10 seconds, and do this internal to the program.
> >
> > I tried to use Threads but I am not getting the results I would like, but am
> > also very new to java. I have a background in C/C++, but just new to java.
> >
> > Any help, anything would be much appreciated.
> >
> > Post comments here, or send them directly to sterling@cecoh.com
> >
> > Sterling.
Technical Details
Message-ID:
<34F72510.CF08920C@pcn.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6d75od$8lp2@forums.borland.com> <34F7241A.4AA873FB@pcn.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,b2de1f6fa0118bb7 X-Google-Attributes: gidf74b3,public From: Marc Jourdenais <mjourden@pcn.com> Subject: Re: Pausing / Delaying Program Execution Help? Date: 1998/02/27 Message-ID: <34F72510.CF08920C@pcn.com> X-Deja-AN: 329258091 Content-Transfer-Encoding: 7bit References: <6d75od$8lp2@forums.borland.com> <34F7241A.4AA873FB@pcn.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language