Class ElanGroupCache
- java.lang.Object
-
- org.opendaylight.serviceutils.tools.listener.AbstractClusteredAsyncDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>
-
- org.opendaylight.netvirt.elan.internal.ElanGroupCache
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>
,org.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>
@Singleton public class ElanGroupCache extends org.opendaylight.serviceutils.tools.listener.AbstractClusteredAsyncDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>
-
-
Constructor Summary
Constructors Constructor Description ElanGroupCache(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, Scheduler scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Default Methods Deprecated Methods Modifier and Type Method Description void
add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group added)
void
add(T arg0)
Deprecated.void
addAfterListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
void
addBeforeListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
void
addJobToWaitList(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, java.lang.Runnable job)
void
close()
protected org.opendaylight.mdsal.binding.api.DataBroker
getDataBroker()
protected org.opendaylight.serviceutils.tools.listener.DataStoreMetrics
getDataStoreMetrics()
java.util.Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group>
getGroup(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key)
void
init()
default void
onDataTreeChanged(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> arg0, org.opendaylight.serviceutils.tools.listener.DataStoreMetrics arg1)
void
register()
void
remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group deleted)
void
remove(T arg0)
Deprecated.void
update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group old, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group updated)
void
update(T arg0, T arg1)
Deprecated.-
Methods inherited from class org.opendaylight.serviceutils.tools.listener.AbstractClusteredAsyncDataTreeChangeListener
getExecutorService, onDataTreeChanged
-
-
-
-
Constructor Detail
-
ElanGroupCache
@Inject public ElanGroupCache(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, Scheduler scheduler)
-
-
Method Detail
-
init
public void init()
-
addJobToWaitList
public void addJobToWaitList(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, java.lang.Runnable job)
-
remove
public void remove(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group deleted)
-
update
public void update(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group old, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group updated)
-
add
public void add(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key, org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group added)
-
getGroup
public java.util.Optional<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> getGroup(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.groups.Group> key) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
close
@PreDestroy public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
addBeforeListener
public void addBeforeListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
- Specified by:
addBeforeListener
in interfaceorg.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
addAfterListener
public void addAfterListener(org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T> arg0)
- Specified by:
addAfterListener
in interfaceorg.opendaylight.serviceutils.tools.listener.ChainableDataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>
-
register
@PostConstruct public void register()
-
getDataBroker
protected org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
-
getDataStoreMetrics
protected org.opendaylight.serviceutils.tools.listener.DataStoreMetrics getDataStoreMetrics()
-
add
@Deprecated public void add(T arg0)
Deprecated.
-
remove
@Deprecated public void remove(T arg0)
Deprecated.
-
update
@Deprecated public void update(T arg0, T arg1)
Deprecated.
-
onDataTreeChanged
public default void onDataTreeChanged(java.util.Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> arg0, org.opendaylight.serviceutils.tools.listener.DataStoreMetrics arg1)
-
-