T - The type of the data object.public final class ChangedData<T extends org.opendaylight.yangtools.yang.binding.DataObject> extends IdentifiedData<T>
ChangedData describes a change of a data object in the MD-SAL
datastore.| Constructor and Description |
|---|
ChangedData(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> id,
T data,
T old)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<D extends org.opendaylight.yangtools.yang.binding.DataObject> |
checkType(Class<D> type)
Check whether the target type of this instance matches the given type
or not.
|
T |
getOldValue()
Return the data object prior to the change.
|
void |
unexpected(org.slf4j.Logger logger,
VtnUpdateType type)
Record a warning log message that indicates unexpected data was
notified.
|
getIdentifier, getValuepublic ChangedData(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> id, T data, T old)
id - An instance identifier that specifies the data location in
the MD-SAL datastore.data - A data object that contains the current value.old - A data object prior to the change.public T getOldValue()
public <D extends org.opendaylight.yangtools.yang.binding.DataObject> ChangedData<D> checkType(Class<D> type)
checkType in class IdentifiedData<T extends org.opendaylight.yangtools.yang.binding.DataObject>D - The expected target type.type - A class which indicates the target type.null.public void unexpected(org.slf4j.Logger logger,
VtnUpdateType type)
unexpected in class IdentifiedData<T extends org.opendaylight.yangtools.yang.binding.DataObject>logger - A logger instance.type - A VtnUpdateType instance that indicates the type
of event.Copyright © 2018 OpenDaylight. All rights reserved.