Class SyncReactorFutureDecorator

java.lang.Object
org.opendaylight.openflowplugin.applications.frsync.impl.SyncReactorFutureDecorator
All Implemented Interfaces:
SyncReactor
Direct Known Subclasses:
SyncReactorFutureZipDecorator

public class SyncReactorFutureDecorator extends Object implements SyncReactor
Decorator for running delegate syncup in Future.
  • Constructor Details

    • SyncReactorFutureDecorator

      public SyncReactorFutureDecorator(SyncReactor delegate, com.google.common.util.concurrent.ListeningExecutorService executorService)
  • Method Details

    • syncup

      public com.google.common.util.concurrent.ListenableFuture<Boolean> syncup(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> flowcapableNodePath, SyncupEntry syncupEntry)
      Description copied from interface: SyncReactor
      Invoked to synchronize a device.
      Specified by:
      syncup in interface SyncReactor
      Parameters:
      flowcapableNodePath - path to openflow augmentation of node
      syncupEntry - configured node + device reflection
      Returns:
      synchronization outcome
    • doSyncupInFuture

      protected com.google.common.util.concurrent.ListenableFuture<Boolean> doSyncupInFuture(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<FlowCapableNode> flowcapableNodePath, SyncupEntry syncupEntry)