eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'BackgroundPeriodicalJob':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: BackgroundPeriodicalJob


Inheritance:

   Object
   |
   +--AbstractBackgroundJob
      |
      +--BackgroundPeriodicalJob

Package:
stx:libbasic2
Category:
System-Support
Version:
rev: 1.4 date: 2016/04/01 21:54:32
user: cg
file: BackgroundPeriodicalJob.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
Jan Vrany <jan.vrany@fit.cvut.cz>

Description:


A BackgroundPeriodicalJob is a specialized form
of a BackgroundJob that performs given job periodically
i.e., every X milliseconds.


[instance variables:]
    interval       <TimeDuration>     how often to perform a job.

[class variables:]


Related information:

    BackgroundJob

Instance protocol:

accessing
o  interval

o  interval: anIntegerOrTimeDuration

processing
o  process
(comment from inherited method)
Actually perform the job. This method is called from the background worker thread


Examples:


| job text | text := 'Hello world'. job := BackgroundPeriodicalJob named: 'example job' on:[ Transcript showCR:'One guy said: ', text ]. job interval: 1000. job start. Delay waitForSeconds: 3. text := 'Haya, you should see this text repeating every second....'. job restart. Delay waitForSeconds: 3. job stop.

ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 17 Nov 2018 21:34:03 GMT