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
ConstructorDescriptionDefaultInstructionSchedulerFactory
(org.opendaylight.mdsal.binding.api.DataBroker dataProvider, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, org.opendaylight.mdsal.binding.api.NotificationPublishService notifs, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider cssp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
createInstructionScheduler
(String instructionId) Creates a unique InstructionScheduler.
-
Constructor Details
-
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, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider cssp)
-
-
Method Details
-
createInstructionScheduler
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
-