com.electrotank.electroserver4.extensions.api
Interface ScheduledCallback


public interface ScheduledCallback

Contains the scheduledCallback method which will be scheduled for later execution, normally a given number of times at a set interval.

Usually this class is implemented as an anonymous inner class. For example, to schedule a callback you could use:

            int id = getApi().scheduleExecution(durationInMilliseconds,
                    numberOfTimesToRepeat,
                    new ScheduledCallback() {

                        public void scheduledCallback() {
                            ... lines to be executed ...
                        }
                    });
 
 

See Also:
ElectroServerApi.scheduleExecution

Method Summary
 void scheduledCallback()
          Method to be invoked by the server at the scheduled time.
 

Method Detail

scheduledCallback

void scheduledCallback()
Method to be invoked by the server at the scheduled time.

See Also:
ElectroServerApi.scheduleExecution


Copyright © 2007 Electrotank, Inc. All Rights Reserved.