blob: 21de7a6ba5238eab5ad504e3fd4c98e382600709 [file] [log] [blame]
Madan Jampanifd26ffb2014-10-13 14:08:55 -07001package org.onlab.onos.net.host;
2
Madan Jampanib5e9b1d2014-10-13 14:18:39 -07003import org.onlab.onos.net.HostId;
Madan Jampanifd26ffb2014-10-13 14:08:55 -07004import org.onlab.onos.store.Timestamp;
Madan Jampanifd26ffb2014-10-13 14:08:55 -07005
6/**
7 * Interface for a logical clock service that issues per host timestamps.
8 */
9public interface HostClockService {
10
11 /**
Madan Jampanib5e9b1d2014-10-13 14:18:39 -070012 * Returns a new timestamp for the specified host.
13 * @param hostId identifier for the host.
Madan Jampanifd26ffb2014-10-13 14:08:55 -070014 * @return timestamp.
15 */
Madan Jampanib5e9b1d2014-10-13 14:18:39 -070016 public Timestamp getTimestamp(HostId hostId);
Madan Jampanifd26ffb2014-10-13 14:08:55 -070017}