Class DistributableTimerServiceFactoryServiceConfigurator
- java.lang.Object
-
- org.wildfly.clustering.service.SimpleServiceNameProvider
-
- org.jboss.as.ejb3.timerservice.distributable.DistributableTimerServiceFactoryServiceConfigurator
-
- All Implemented Interfaces:
CapabilityServiceConfigurator,ManagedTimerServiceFactory,TimerManagerFactoryConfiguration<UUID>,TimerRegistry<UUID>,ServiceConfigurator,ServiceNameProvider
public class DistributableTimerServiceFactoryServiceConfigurator extends SimpleServiceNameProvider implements CapabilityServiceConfigurator, TimerManagerFactoryConfiguration<UUID>, ManagedTimerServiceFactory, TimerRegistry<UUID>
Configures a service that provides a distributedTimerServiceFactory.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributableTimerServiceFactoryServiceConfigurator(org.jboss.msc.service.ServiceName name, ManagedTimerServiceFactoryConfiguration factoryConfiguration, TimerServiceConfiguration configuration, TimerManagementProvider provider, Predicate<jakarta.ejb.TimerConfig> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.service.ServiceBuilder<?>build(org.jboss.msc.service.ServiceTarget target)ServiceConfiguratorconfigure(org.jboss.as.controller.capability.CapabilityServiceSupport support)ManagedTimerServicecreateTimerService(EJBComponent component)Creates a managed timer service for the specified component.Supplier<UUID>getIdentifierFactory()TimerRegistry<UUID>getRegistry()TimerServiceConfigurationgetTimerServiceConfiguration()booleanisPersistent()voidregister(UUID id)voidunregister(UUID id)-
Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.as.clustering.controller.CapabilityServiceConfigurator
configure
-
Methods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
-
-
-
Constructor Detail
-
DistributableTimerServiceFactoryServiceConfigurator
public DistributableTimerServiceFactoryServiceConfigurator(org.jboss.msc.service.ServiceName name, ManagedTimerServiceFactoryConfiguration factoryConfiguration, TimerServiceConfiguration configuration, TimerManagementProvider provider, Predicate<jakarta.ejb.TimerConfig> filter)
-
-
Method Detail
-
createTimerService
public ManagedTimerService createTimerService(EJBComponent component)
Description copied from interface:ManagedTimerServiceFactoryCreates a managed timer service for the specified component.- Specified by:
createTimerServicein interfaceManagedTimerServiceFactory- Parameters:
component- an EJB component- Returns:
- a managed timer service.
-
configure
public ServiceConfigurator configure(org.jboss.as.controller.capability.CapabilityServiceSupport support)
- Specified by:
configurein interfaceCapabilityServiceConfigurator
-
build
public org.jboss.msc.service.ServiceBuilder<?> build(org.jboss.msc.service.ServiceTarget target)
- Specified by:
buildin interfaceServiceConfigurator
-
getIdentifierFactory
public Supplier<UUID> getIdentifierFactory()
- Specified by:
getIdentifierFactoryin interfaceTimerManagerFactoryConfiguration<UUID>
-
getRegistry
public TimerRegistry<UUID> getRegistry()
- Specified by:
getRegistryin interfaceTimerManagerFactoryConfiguration<UUID>
-
register
public void register(UUID id)
- Specified by:
registerin interfaceTimerRegistry<UUID>
-
unregister
public void unregister(UUID id)
- Specified by:
unregisterin interfaceTimerRegistry<UUID>
-
isPersistent
public boolean isPersistent()
- Specified by:
isPersistentin interfaceTimerManagerFactoryConfiguration<UUID>
-
getTimerServiceConfiguration
public TimerServiceConfiguration getTimerServiceConfiguration()
- Specified by:
getTimerServiceConfigurationin interfaceTimerManagerFactoryConfiguration<UUID>
-
-