|
3 | 3 | import io.hstream.impl.HStreamClientBuilderImpl; |
4 | 4 | import java.util.List; |
5 | 5 |
|
6 | | -/** HStreamDB Client. */ |
| 6 | +/** A client for the HStreamDB. */ |
7 | 7 | public interface HStreamClient extends AutoCloseable { |
8 | 8 |
|
9 | | - /** @return {@link HStreamClientBuilder}. */ |
| 9 | + /** @return a {@link HStreamClientBuilder} */ |
10 | 10 | static HStreamClientBuilder builder() { |
11 | 11 | return new HStreamClientBuilderImpl(); |
12 | 12 | } |
13 | 13 |
|
14 | | - /** @return the {@link ProducerBuilder}. */ |
| 14 | + /** @return a {@link ProducerBuilder} */ |
15 | 15 | ProducerBuilder newProducer(); |
16 | 16 |
|
17 | | - /** @return the {@link ConsumerBuilder}. */ |
| 17 | + /** @return a {@link ConsumerBuilder} */ |
18 | 18 | ConsumerBuilder newConsumer(); |
19 | 19 |
|
20 | | - /** @return the {@link QueryerBuilder}. */ |
| 20 | + /** @return a {@link QueryerBuilder} */ |
21 | 21 | QueryerBuilder newQueryer(); |
22 | 22 |
|
23 | 23 | /** |
24 | | - * create a new stream with 3 replicas. |
| 24 | + * Create a new stream with 3 replicas. |
25 | 25 | * |
26 | | - * @param stream the name of stream. |
| 26 | + * @param stream the name of stream |
27 | 27 | */ |
28 | 28 | void createStream(String stream); |
29 | 29 |
|
30 | 30 | /** |
31 | | - * create a new stream. |
| 31 | + * Create a new stream. |
32 | 32 | * |
33 | | - * @param stream the name of stream. |
| 33 | + * @param stream the name of stream |
34 | 34 | */ |
35 | 35 | void createStream(String stream, short replicationFactor); |
36 | 36 |
|
37 | 37 | /** |
38 | | - * Delete specified stream with streamName. |
| 38 | + * Delete the specified stream with streamName. |
39 | 39 | * |
40 | | - * @param stream the name of stream. |
| 40 | + * @param stream the name of stream |
41 | 41 | */ |
42 | 42 | void deleteStream(String stream); |
43 | 43 |
|
44 | 44 | /** |
45 | | - * Return all created {@link Stream}. |
| 45 | + * List all streams. |
46 | 46 | * |
47 | | - * @return the list of created streams. |
| 47 | + * @return a list of {@link Stream}s |
48 | 48 | */ |
49 | 49 | List<Stream> listStreams(); |
50 | 50 |
|
51 | 51 | /** |
52 | 52 | * Create a new Subscription. |
53 | 53 | * |
54 | | - * @param subscription {@link Subscription}. |
| 54 | + * @param subscription {@link Subscription} |
55 | 55 | */ |
56 | 56 | void createSubscription(Subscription subscription); |
57 | 57 |
|
58 | 58 | /** |
59 | | - * Return all created {@link Subscription}. |
| 59 | + * List all subscriptions. |
60 | 60 | * |
61 | | - * @return the list of created Subscriptions. |
| 61 | + * @return a list of {@link Subscription}s. |
62 | 62 | */ |
63 | 63 | List<Subscription> listSubscriptions(); |
64 | 64 |
|
65 | 65 | /** |
66 | | - * Delete specified subscription with subscriptionId. |
| 66 | + * Delete the specified subscription with subscriptionId. |
67 | 67 | * |
68 | | - * @param subscriptionId the id of the subscription to be deleted. |
| 68 | + * @param subscriptionId the id of the subscription to be deleted |
69 | 69 | */ |
70 | 70 | void deleteSubscription(String subscriptionId); |
71 | 71 | } |
0 commit comments