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

org.wildfly.clustering.ejb.timer.Timer Maven / Gradle / Ivy

Go to download

A set of SPIs for managing distributable @Stateful bean instances for use by the the distributed Jakarta Enterprise Beans cache implementation found in the wildfly-ejb3 module. This module decouples the mechanism for managing @Stateful bean instances from the Jakarta Enterprise Beans subsystem.

There is a newer version: 33.0.2.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.ejb.timer;

/**
 * Describes the properties of a timer, and its controlling mechanisms.
 * @author Paul Ferraro
 * @param  the timer identifier type
 */
public interface Timer {

    I getId();
    ImmutableTimerMetaData getMetaData();
    boolean isActive();
    boolean isCanceled();

    void cancel();

    void invoke() throws Exception;

    void activate();
    void suspend();
}