blob: 48c897b3e41ffbf6fee34b3752d65d5e3ce48ffd [file] [log] [blame]
Jihwan Kim1f536272015-12-18 03:10:09 +09001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
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>
24 extends DistributedPrimitiveBuilder<AtomicCounterMapBuilder<K>, AtomicCounterMap<K>> {
Jihwan Kimcf8f6b22016-11-12 13:07:04 +090025 public AtomicCounterMapBuilder() {
26 super(DistributedPrimitive.Type.COUNTER_MAP);
27 }
Jordan Haltermanc955df72017-02-04 20:43:28 -080028
29 /**
30 * Builds an async atomic counter map based on the configuration options
31 * supplied to this builder.
32 *
33 * @return new async atomic counter map
34 * @throws java.lang.RuntimeException if a mandatory parameter is missing
35 */
36 public abstract AsyncAtomicCounterMap<K> buildAsyncMap();
37}