All Examples  This Package 

Class examples.time.ClientTimer

java.lang.Object
   |
   +----examples.time.ClientTimer

public class ClientTimer
extends Object
implements Schedulable, Triggerable
This class illustrates use of client-side timers. By defining a "schedule" method and a "trigger" method, a scheduled recurring action can be established. Note that The "schedule" method is called for in each rescheduling operation, allowing arbitrarily complex scheduling semantics. In this example, the timer starts out at a 0 second delay, but with each event, the delay is increased by 1 second. When it reaches 10, the trigger is cancelled.

Assuming that the server is running on port 7001 of the local machine, you would run this example using the following command:

  java examples.time.ClientTimer t3://localhost:7001

Author:
Copyright (c) 1996-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o ClientTimer(T3ServicesDef)

Method Index

 o main(String[])
This application connects to the WebLogic Server, and sets up a client-side scheduled trigger (a recurring action).
 o schedule(long)
 o trigger()

Constructors

 o ClientTimer
 public ClientTimer(T3ServicesDef services)

Methods

 o schedule
 public long schedule(long t)
 o trigger
 public void trigger()
 o main
 public static void main(String argv[]) throws Exception
This application connects to the WebLogic Server, and sets up a client-side scheduled trigger (a recurring action). The main thread waits until the timer is cancelled.


All Examples  This Package