Madan Jampani | 3e033bd | 2015-04-08 13:03:49 -0700 | [diff] [blame] | 1 | package org.onosproject.store.service; |
| 2 | |
| 3 | import org.onosproject.store.Timestamp; |
| 4 | |
| 5 | /** |
| 6 | * Service that issues logical timestamps. |
| 7 | * <p> |
| 8 | * The logical timestamps are useful for establishing a total ordering of |
| 9 | * arbitrary cluster wide events without relying on a fully synchronized |
| 10 | * system clock (wall clock) |
| 11 | */ |
| 12 | public interface LogicalClockService { |
| 13 | |
| 14 | /** |
| 15 | * Generates a new logical timestamp. |
| 16 | * |
| 17 | * @return timestamp |
| 18 | */ |
| 19 | Timestamp getTimestamp(); |
| 20 | } |