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

org.wildfly.clustering.ejb.timer.TimerServiceRequirement 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;

import org.jboss.as.clustering.controller.UnaryRequirementServiceNameFactory;
import org.jboss.as.clustering.controller.UnaryServiceNameFactory;
import org.jboss.as.clustering.controller.UnaryServiceNameFactoryProvider;
import org.wildfly.clustering.service.UnaryRequirement;

/**
 * Enumerates the distributed timer service capabilities.
 * @author Paul Ferraro
 */
public enum TimerServiceRequirement implements UnaryRequirement, UnaryServiceNameFactoryProvider {
    TIMER_MANAGEMENT_PROVIDER("org.wildfly.clustering.ejb.timer-management-provider", TimerManagementProvider.class),
    ;
    private final String name;
    private final Class type;
    private final UnaryServiceNameFactory factory = new UnaryRequirementServiceNameFactory(this);

    TimerServiceRequirement(String name, Class type) {
        this.name = name;
        this.type = type;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Class getType() {
        return this.type;
    }

    @Override
    public UnaryServiceNameFactory getServiceNameFactory() {
        return this.factory;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy