org.wildfly.clustering.ejb.timer.TimerManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wildfly-clustering-ejb-spi Show documentation
Show all versions of wildfly-clustering-ejb-spi Show documentation
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.
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.ejb.timer;
import java.lang.reflect.Method;
import java.util.function.Supplier;
import java.util.stream.Stream;
import org.wildfly.clustering.ee.Batch;
import org.wildfly.clustering.ee.Batcher;
import org.wildfly.clustering.ee.Restartable;
/**
* Manages creation, retrieval, and scheduling of timers.
* @author Paul Ferraro
* @param the timer identifier type
* @param the batch type
*/
public interface TimerManager extends Restartable {
Timer createTimer(I id, IntervalTimerConfiguration config, Object context);
Timer createTimer(I id, ScheduleTimerConfiguration config, Object context);
Timer createTimer(I id, ScheduleTimerConfiguration config, Object context, Method method, int index);
Timer getTimer(I id);
Stream getActiveTimers();
Batcher getBatcher();
Supplier getIdentifierFactory();
}