Class ElanInstanceCache
- java.lang.Object
-
- org.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<V>,V>
-
- org.opendaylight.genius.mdsalutil.cache.InstanceIdDataObjectCache<ElanInstance>
-
- org.opendaylight.netvirt.elan.cache.ElanInstanceCache
-
- All Implemented Interfaces:
java.lang.AutoCloseable
@Singleton public class ElanInstanceCache extends org.opendaylight.genius.mdsalutil.cache.InstanceIdDataObjectCache<ElanInstance>
Caches ElanInstances.- Author:
- Thomas Pantelis
-
-
Constructor Summary
Constructors Constructor Description ElanInstanceCache(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.infrautils.caches.CacheProvider cacheProvider, Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
added(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> path, ElanInstance elanInstance)
java.util.Optional<ElanInstance>
get(java.lang.String elanInstanceName)
java.util.Optional<ElanInstance>
get(java.lang.String elanInstanceName, java.lang.Runnable runAfterElanIsAvailable)
protected void
removed(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> path, ElanInstance dataObject)
-
-
-
Constructor Detail
-
ElanInstanceCache
@Inject public ElanInstanceCache(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.infrautils.caches.CacheProvider cacheProvider, Scheduler scheduler)
-
-
Method Detail
-
removed
protected void removed(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> path, ElanInstance dataObject)
- Overrides:
removed
in classorg.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance>,ElanInstance>
-
get
public java.util.Optional<ElanInstance> get(java.lang.String elanInstanceName)
-
get
public java.util.Optional<ElanInstance> get(java.lang.String elanInstanceName, java.lang.Runnable runAfterElanIsAvailable)
-
added
protected void added(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> path, ElanInstance elanInstance)
- Overrides:
added
in classorg.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance>,ElanInstance>
-
-