The relationship between these interfaces is realized in the
implementation, but it is not captured in the interface contract
documentation.
JIRA: MDSAL-282
Change-Id: I99d8787a16263c6628440dac8b3bd7a6bbec3f9c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
ae3fde5afcd6811321b8f9cbbf2f6da1661b5610)
import java.time.Instant;
/**
- * Generic event interface.
+ * Generic event interface. This interface is mixed in into implementations of other DOM-level constructs, such as
+ * {@link DOMNotification} to add the time when the event occurred when appropriate.
*/
public interface DOMEvent {
/**
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
/**
- * A single YANG notification.
+ * A single YANG notification. This interface captures the data portion of a notification. Implementations may choose
+ * to additionally implement {@link DOMEvent}, in which case {@link DOMEvent#getEventInstant()} returns the time when
+ * this notification was generated -- and corresponds to <a href="https://tools.ietf.org/html/rfc5277#section-2.2.1">
+ * RFC5277</a> NETCONF notification's {@code eventTime} parameter.
*/
public interface DOMNotification {
/**