Refactor DOM{Action,Rpc}Implementation
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMEvent.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.mdsal.dom.api;
9
10 import java.time.Instant;
11
12 /**
13  * Generic event interface. This interface is mixed in into implementations of other DOM-level constructs, such as
14  * {@link DOMNotification} to add the time when the event occurred when appropriate.
15  */
16 public interface DOMEvent {
17     /**
18      * Get the time of the event occurrence.
19      *
20      * @return the event time
21      */
22     Instant getEventInstant();
23 }