blob: 5da7215e172a879dc124b6d0abef22659e34c92f [file] [log] [blame]
Jonathan Hart5573d322015-01-21 10:13:25 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.intent;
17
18import org.onosproject.store.Timestamp;
19
20/**
21 * Logical clock service that issues per-intent timestamps.
22 */
23public interface IntentClockService {
24
25 /**
26 * Returns a new timestamp for the specified intent.
27 *
28 * @param intentId identifier for the intent.
29 * @return timestamp
30 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070031 Timestamp getTimestamp(IntentId intentId);
Jonathan Hart5573d322015-01-21 10:13:25 -080032}