2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.drools.event.comm.bus;
23 import org.onap.policy.drools.event.comm.TopicSource;
26 * Generic Topic Source for UEB/DMAAP Communication Infrastructure
29 public interface BusTopicSource extends ApiKeyEnabled, TopicSource {
32 * Default Consumer Instance Value
34 public static String DEFAULT_CONSUMER_INSTANCE = "0";
37 * Default Timeout fetching in milliseconds
39 public static int DEFAULT_TIMEOUT_MS_FETCH = 15000;
42 * Default maximum number of messages fetch at the time
44 public static int DEFAULT_LIMIT_FETCH = 100;
47 * Definition of No Timeout fetching
49 public static int NO_TIMEOUT_MS_FETCH = -1;
52 * Definition of No limit fetching
54 public static int NO_LIMIT_FETCH = -1;
57 * gets the consumer group
59 * @return consumer group
61 public String getConsumerGroup();
64 * gets the consumer instance
66 * @return consumer instance
68 public String getConsumerInstance();
71 * gets the fetch timeout
73 * @return fetch timeout
75 public int getFetchTimeout();
78 * gets the fetch limit
82 public int getFetchLimit();