blob: 9598e348a96930e068eaa47d6cd6b8b5c3ef3b3f [file] [log] [blame]
Jihwan Kim1f536272015-12-18 03:10:09 +09001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Jihwan Kim1f536272015-12-18 03:10:09 +09003 *
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
Jihwan Kimcf8f6b22016-11-12 13:07:04 +090018import org.onosproject.store.primitives.DistributedPrimitiveBuilder;
19
Jihwan Kim1f536272015-12-18 03:10:09 +090020/**
21 * Builder for AtomicCounterMap.
22 */
Jordan Haltermanc955df72017-02-04 20:43:28 -080023public abstract class AtomicCounterMapBuilder<K>
Jordan Halterman2c045992018-03-20 21:33:00 -070024 extends AtomicCounterMapOptions<AtomicCounterMapBuilder<K>, K>
25 implements DistributedPrimitiveBuilder<AtomicCounterMap<K>> {
Jordan Haltermanc955df72017-02-04 20:43:28 -080026
27 /**
28 * Builds an async atomic counter map based on the configuration options
29 * supplied to this builder.
30 *
31 * @return new async atomic counter map
32 * @throws java.lang.RuntimeException if a mandatory parameter is missing
33 */
34 public abstract AsyncAtomicCounterMap<K> buildAsyncMap();
35}