All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.directwebremoting.extend.Alarm Maven / Gradle / Ivy

Go to download

DWR is easy Ajax for Java. It makes it simple to call Java code directly from Javascript. It gets rid of almost all the boiler plate code between the web browser and your Java code.

The newest version!
package org.directwebremoting.extend;

/**
 * An alarm is something that goes off at some point in the future.
 * Alarms must be constructed with a {@link Sleeper} so they can act to tell
 * the Sleeper to awake (or not to sleep) at any time until {@link #cancel()}
 * is called.
 * The alarm should not 'go off' after {@link #cancel()} has been called,
 * however, {@link Sleeper}s should still protect themselves from late calls to
 * {@link Sleeper#wakeUp()}.
 * @author Joe Walker [joe at getahead dot ltd dot uk]
 */
public interface Alarm
{
    /**
     * Prevent further calls to {@link Sleeper#wakeUp()}.
     * See the note about late calls above.
     */
    void cancel();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy