2 * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.binding;
10 import com.google.common.annotations.Beta;
11 import java.time.Instant;
12 import org.eclipse.jdt.annotation.NonNull;
15 * This interface is mixed in into implementations of other constructs, such as {@link Notification} to add the time
16 * when the event occurred.
19 public interface EventInstantAware {
21 * Get the time of the event occurrence.
23 * @return the event time
25 @NonNull Instant eventInstant();