Jihwan Kim | 1f53627 | 2015-12-18 03:10:09 +0900 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
Jihwan Kim | 1f53627 | 2015-12-18 03:10:09 +0900 | [diff] [blame] | 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 | */ |
| 16 | package org.onosproject.store.service; |
| 17 | |
Jihwan Kim | cf8f6b2 | 2016-11-12 13:07:04 +0900 | [diff] [blame] | 18 | import org.onosproject.store.primitives.DistributedPrimitiveBuilder; |
| 19 | |
Jihwan Kim | 1f53627 | 2015-12-18 03:10:09 +0900 | [diff] [blame] | 20 | /** |
| 21 | * Builder for AtomicCounterMap. |
| 22 | */ |
Jordan Halterman | c955df7 | 2017-02-04 20:43:28 -0800 | [diff] [blame] | 23 | public abstract class AtomicCounterMapBuilder<K> |
Jordan Halterman | 2c04599 | 2018-03-20 21:33:00 -0700 | [diff] [blame] | 24 | extends AtomicCounterMapOptions<AtomicCounterMapBuilder<K>, K> |
| 25 | implements DistributedPrimitiveBuilder<AtomicCounterMap<K>> { |
Jordan Halterman | c955df7 | 2017-02-04 20:43:28 -0800 | [diff] [blame] | 26 | |
| 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 | } |