Interface GuardedContext
- All Superinterfaces:
AutoCloseable,org.opendaylight.mdsal.singleton.api.ClusterSingletonService,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>,OFPContext
- All Known Implementing Classes:
GuardedContextImpl
Stateful OpenFlow context wrapper.
-
Method Summary
Modifier and TypeMethodDescription<T> Tmap(Function<OFPContext, T> transformer) Maps delegate inside guarded context to T.com.google.common.util.concurrent.Service.Statestate()Returns the lifecycle state of the service.Methods inherited from interface org.opendaylight.mdsal.singleton.api.ClusterSingletonService
closeServiceInstance, instantiateServiceInstanceMethods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifierMethods 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
Maps delegate inside guarded context to T.- Type Parameters:
T- the type parameter- Parameters:
transformer- the transformer- Returns:
- the t
-