Class DefaultInstructionSchedulerFactory
- java.lang.Object
-
- org.opendaylight.bgpcep.programming.impl.DefaultInstructionSchedulerFactory
-
- All Implemented Interfaces:
AutoCloseable
,InstructionSchedulerFactory
@Singleton public final class DefaultInstructionSchedulerFactory extends Object implements InstructionSchedulerFactory, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description DefaultInstructionSchedulerFactory(org.opendaylight.mdsal.binding.api.DataBroker dataProvider, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, org.opendaylight.mdsal.binding.api.NotificationPublishService notifs, io.netty.util.Timer timer, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider cssp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
InstructionScheduler
createInstructionScheduler(String instructionId)
Creates a unique InstructionScheduler.
-
-
-
Constructor Detail
-
DefaultInstructionSchedulerFactory
@Inject public DefaultInstructionSchedulerFactory(org.opendaylight.mdsal.binding.api.DataBroker dataProvider, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, org.opendaylight.mdsal.binding.api.NotificationPublishService notifs, io.netty.util.Timer timer, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider cssp)
-
-
Method Detail
-
createInstructionScheduler
public InstructionScheduler createInstructionScheduler(String instructionId)
Description copied from interface:InstructionSchedulerFactory
Creates a unique InstructionScheduler.- Specified by:
createInstructionScheduler
in interfaceInstructionSchedulerFactory
- Parameters:
instructionId
- Unique Identifier, also to be used as part of Cluster Singleton Service Group Identifier as "instructionId"-service-group- Returns:
- InstructionScheduler
-
close
@PreDestroy public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-