blob: 77152aa1076e1b79d5d0b7b4c5bdbe1557bc7ae3 [file] [log] [blame]
Jordan Halterman2c045992018-03-20 21:33:00 -07001/*
2 * Copyright 2018-present Open Networking Foundation
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.store.service;
17
18/**
19 * Distributed primitive revision types.
20 * <p>
21 * Revision types dictate the semantics of new revisions of a distributed primitive. They indicate how the new
22 * revision is initialized and how it relates to prior revisions.
23 */
24public enum RevisionType {
25
26 /**
27 * A distributed primitive that is initialized with an empty state.
28 */
29 NONE,
30
31 /**
32 * A distributed primitive that is initialized from the previous revision and sets the previous revision to
33 * read-only mode.
34 */
35 VERSION,
36
37 /**
38 * A distributed primitive that is initialized from the state of the previous revision and to which changes to
39 * the previous revision are propagated.
40 */
41 PROPAGATE,
42
43 /**
44 * A distributed primitive that is initialized from the state of the previous revision and thereafter diverges.
45 */
46 ISOLATE,
47
48}