blob: 193e0696ebffae34294d8e0413fdf2b5923ab686 [file] [log] [blame]
Madan Jampani5e5b3d62016-02-01 16:03:33 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Madan Jampani5e5b3d62016-02-01 16:03:33 -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 */
Madan Jampanicadd70b2016-02-08 13:45:43 -080016package org.onosproject.store.primitives;
Madan Jampani5e5b3d62016-02-01 16:03:33 -080017
Jian Lib6d998e2016-02-29 11:41:18 -080018import org.onlab.util.Identifier;
Madan Jampani5e5b3d62016-02-01 16:03:33 -080019
20/**
21 * Transaction identifier.
22 */
Jian Lib6d998e2016-02-29 11:41:18 -080023public final class TransactionId extends Identifier<String> {
Madan Jampani5e5b3d62016-02-01 16:03:33 -080024
Jian Lib6d998e2016-02-29 11:41:18 -080025 /**
26 * Creates a new transaction identifier.
27 *
28 * @param id backing identifier value
29 * @return transaction identifier
30 */
Madan Jampani5e5b3d62016-02-01 16:03:33 -080031 public static TransactionId from(String id) {
32 return new TransactionId(id);
33 }
34
Madan Jampani5e5b3d62016-02-01 16:03:33 -080035 private TransactionId(String id) {
Jian Lib6d998e2016-02-29 11:41:18 -080036 super(id);
Madan Jampani5e5b3d62016-02-01 16:03:33 -080037 }
38}