Thomas Vachuska | 5bd7b55 | 2018-11-08 15:41:27 -0800 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | |
| 17 | package org.onosproject.kafkaintegration.kafka; |
| 18 | |
| 19 | /** |
| 20 | * Constants for default values of configurable properties. |
| 21 | */ |
| 22 | public final class OsgiPropertyConstants { |
| 23 | private OsgiPropertyConstants() { |
| 24 | } |
| 25 | |
| 26 | static final String BOOTSTRAP_SERVERS = "bootstrapServers"; |
| 27 | static final String BOOTSTRAP_SERVERS_DEFAULT = "localhost:9092"; |
| 28 | |
| 29 | static final String RETRIES = "retries"; |
| 30 | static final int RETRIES_DEFAULT = 1; |
| 31 | |
| 32 | static final String MAX_IN_FLIGHT = "maxInFlightRequestsPerConnection"; |
| 33 | static final int MAX_IN_FLIGHT_DEFAULT = 5; |
| 34 | |
| 35 | static final String REQUIRED_ACKS = "requestRequiredAcks"; |
| 36 | static final int REQUIRED_ACKS_DEFAULT = 1; |
| 37 | |
| 38 | static final String KEY_SERIALIZER = "keySerializer"; |
| 39 | static final String KEY_SERIALIZER_DEFAULT = "org.apache.kafka.common.serialization.StringSerializer"; |
| 40 | |
| 41 | static final String VALUE_SERIALIZER = "valueSerializer"; |
| 42 | static final String VALUE_SERIALIZER_DEFAULT = "org.apache.kafka.common.serialization.ByteArraySerializer"; |
| 43 | |
| 44 | } |