|
30 | 30 | package org.oracle.okafka.clients.consumer;
|
31 | 31 |
|
32 | 32 | import org.apache.kafka.clients.ClientDnsLookup;
|
33 |
| -import org.apache.kafka.clients.CommonClientConfigs; |
34 | 33 | import org.apache.kafka.common.IsolationLevel;
|
35 | 34 | import org.apache.kafka.common.config.AbstractConfig;
|
36 | 35 | import org.apache.kafka.common.config.ConfigDef;
|
|
42 | 41 | import org.apache.kafka.common.requests.JoinGroupRequest;
|
43 | 42 | import org.apache.kafka.common.serialization.Deserializer;
|
44 | 43 | import org.oracle.okafka.common.config.SslConfigs;
|
| 44 | +import org.oracle.okafka.clients.CommonClientConfigs; |
45 | 45 |
|
46 | 46 | import java.util.Collections;
|
47 | 47 | import java.util.HashMap;
|
@@ -338,15 +338,20 @@ public class ConsumerConfig extends AbstractConfig {
|
338 | 338 | " broker allows for it using `auto.create.topics.enable` broker configuration. This configuration must" +
|
339 | 339 | " be set to `false` when using brokers older than 0.11.0";
|
340 | 340 | public static final boolean DEFAULT_ALLOW_AUTO_CREATE_TOPICS = true;
|
341 |
| - |
| 341 | + |
342 | 342 | /**
|
343 | 343 | * <code>security.providers</code>
|
344 | 344 | */
|
345 | 345 | public static final String SECURITY_PROVIDERS_CONFIG = SecurityConfig.SECURITY_PROVIDERS_CONFIG;
|
346 | 346 | private static final String SECURITY_PROVIDERS_DOC = SecurityConfig.SECURITY_PROVIDERS_DOC;
|
347 | 347 |
|
348 | 348 | private static final AtomicInteger CONSUMER_CLIENT_ID_SEQUENCE = new AtomicInteger(1);
|
349 |
| - |
| 349 | + |
| 350 | + /** <code>oracle.consumer.lightweight</code> */ |
| 351 | + public static final String ORACLE_CONSUMER_LIGHTWEIGHT = "oracle.consumer.lightweight"; |
| 352 | + public static final String ORACLE_CONSUMER_LIGHTWEIGHT_DOC = "Creates a light weight subscriber"; |
| 353 | + |
| 354 | + |
350 | 355 | static {
|
351 | 356 | CONFIG = new ConfigDef().define(BOOTSTRAP_SERVERS_CONFIG,
|
352 | 357 | Type.LIST,
|
@@ -606,7 +611,13 @@ public class ConsumerConfig extends AbstractConfig {
|
606 | 611 | .define(org.oracle.okafka.clients.CommonClientConfigs.ORACLE_NET_TNS_ADMIN,
|
607 | 612 | ConfigDef.Type.STRING,
|
608 | 613 | Importance.MEDIUM,
|
609 |
| - org.oracle.okafka.clients.CommonClientConfigs.ORACLE_NET_TNS_ADMIN_DOC); |
| 614 | + org.oracle.okafka.clients.CommonClientConfigs.ORACLE_NET_TNS_ADMIN_DOC) |
| 615 | + .define(CommonClientConfigs.ORACLE_CONSUMER_LIGHTWEIGHT, |
| 616 | + ConfigDef.Type.BOOLEAN, |
| 617 | + false, |
| 618 | + Importance.LOW, |
| 619 | + CommonClientConfigs.ORACLE_CONSUMER_LIGHTWEIGHT_DOC) |
| 620 | + ; |
610 | 621 |
|
611 | 622 | }
|
612 | 623 |
|
|
0 commit comments