blob: 1328f69e5bf5ac60d3e7b9f9a109d89c5f89abb5 [file] [log] [blame]
Jonathan Hart5573d322015-01-21 10:13:25 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
Jonathan Hart5573d322015-01-21 10:13:25 -08003 *
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
Brian O'Connor9476fa12015-06-25 15:17:17 -040018import com.google.common.annotations.Beta;
Jonathan Hart5573d322015-01-21 10:13:25 -080019import org.onosproject.store.Timestamp;
20
21/**
22 * Logical clock service that issues per-intent timestamps.
23 */
Brian O'Connor9476fa12015-06-25 15:17:17 -040024@Beta
Jonathan Hart5573d322015-01-21 10:13:25 -080025public interface IntentClockService {
26
27 /**
28 * Returns a new timestamp for the specified intent.
29 *
30 * @param intentId identifier for the intent.
31 * @return timestamp
32 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070033 Timestamp getTimestamp(IntentId intentId);
Jonathan Hart5573d322015-01-21 10:13:25 -080034}