Class 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.controller.md.sal.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)  
      com.google.common.base.Optional<ElanInstance> get​(java.lang.String elanInstanceName)  
      com.google.common.base.Optional<ElanInstance> get​(java.lang.String elanInstanceName, java.lang.Runnable runAfterElanIsAvailable)  
      protected void removed​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance> path, ElanInstance dataObject)  
      • Methods inherited from class org.opendaylight.genius.mdsalutil.cache.DataObjectCache

        checkIsClosed, close, get, getAllPresent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElanInstanceCache

        @Inject
        public ElanInstanceCache​(org.opendaylight.controller.md.sal.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 class org.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance>,​ElanInstance>
      • get

        public com.google.common.base.Optional<ElanInstance> get​(java.lang.String elanInstanceName)
      • get

        public com.google.common.base.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 class org.opendaylight.genius.mdsalutil.cache.DataObjectCache<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<ElanInstance>,​ElanInstance>