Interface GuardedContext

All Superinterfaces:
AutoCloseable, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>, OFPContext
All Known Implementing Classes:
GuardedContextImpl

public interface GuardedContext extends OFPContext
Stateful OpenFlow context wrapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    map(Function<OFPContext,T> transformer)
    Maps delegate inside guarded context to T.
    com.google.common.util.concurrent.Service.State
    Returns the lifecycle state of the service.

    Methods inherited from interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService

    closeServiceInstance, instantiateServiceInstance

    Methods inherited from interface org.opendaylight.yangtools.concepts.Identifiable

    getIdentifier

    Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.OFPContext

    close, getDeviceInfo, registerMastershipWatcher
  • Method Details

    • state

      com.google.common.util.concurrent.Service.State state()
      Returns the lifecycle state of the service.
      Returns:
      the service state
    • map

      <T> T map(Function<OFPContext,T> transformer)
      Maps delegate inside guarded context to T.
      Type Parameters:
      T - the type parameter
      Parameters:
      transformer - the transformer
      Returns:
      the t