Skip to content

Commit 9209047

Browse files
committed
Issue openmessaging#7 Fix link error in java doc
1 parent 792da64 commit 9209047

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

openmessaging-api/src/main/java/io/openmessaging/consumer/PushConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public interface PushConsumer extends ServiceLifecycle {
8383

8484
/**
8585
* Attaches the {@code PushConsumer} to a specified queue, with a {@code MessageListener}.
86-
* {@link MessageListener#onMessage(Message, MessageContext)} will be called when new
86+
* {@link MessageListener#onReceived(Message, MessageListener.Context)} will be called when new
8787
* delivered message is coming.
8888
*
8989
* @param queueName a specified queue
@@ -97,7 +97,7 @@ public interface PushConsumer extends ServiceLifecycle {
9797
/**
9898
* Attaches the {@code PushConsumer} to a specified queue, with a {@code MessageListener} and some
9999
* specified attributes.
100-
* {@link MessageListener#onMessage(Message, MessageContext)} will be called when new
100+
* {@link MessageListener#onReceived(Message, MessageListener.Context)} will be called when new
101101
* delivered message is coming.
102102
*
103103
* @param queueName a specified queue

openmessaging-api/src/main/java/io/openmessaging/producer/Producer.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@
3737
* of a {@code MessagingAccessPoint}. An instance of {@code Producer} is
3838
* created by calling the {@link MessagingAccessPoint#createProducer()} method.
3939
* It provides various {@code send} methods to send a message to a specified destination.
40-
* A destination can be a {@link MessageHeaderBuiltinKeys#Topic} or a {@link MessageHeaderBuiltinKeys#Queue}.
40+
* A destination can be a {@link Message.BuiltinKeys#Topic} or a {@link Message.BuiltinKeys#Queue}.
4141
* <p>
42-
*
4342
* {@link Producer#send(Message)} means send a message to destination synchronously,
4443
* the calling thread will block until the send request complete.
4544
* <p>
@@ -68,13 +67,13 @@ public interface Producer extends MessageFactory, ServiceLifecycle {
6867
* <li> {@link OMSBuiltinKeys#OPERATION_TIMEOUT}, the default timeout period for operations of {@code Producer}.
6968
* </ul>
7069
*
71-
* @return the attributes
70+
* @return the properties
7271
*/
7372
KeyValue properties();
7473

7574
/**
7675
* Sends a message to the specified destination synchronously, the destination should be preset to
77-
* {@link MessageHeaderBuiltinKeys}, other header fields as well.
76+
* {@link Message#sysHeaders()}, other header fields as well.
7877
*
7978
* @param message a message will be sent
8079
* @return the successful {@code SendResult}
@@ -86,7 +85,7 @@ public interface Producer extends MessageFactory, ServiceLifecycle {
8685

8786
/**
8887
* Sends a message to the specified destination synchronously, using the specified attributes, the destination
89-
* should be preset to {@link MessageHeaderBuiltinKeys}, other header fields as well.
88+
* should be preset to {@link Message#sysHeaders()}, other header fields as well.
9089
*
9190
* @param message a message will be sent
9291
* @param properties the specified attributes
@@ -101,7 +100,7 @@ public interface Producer extends MessageFactory, ServiceLifecycle {
101100

102101
/**
103102
* Sends a message to the specified destination asynchronously, the destination should be preset to
104-
* {@link MessageHeaderBuiltinKeys}, other header fields as well.
103+
* {@link Message#sysHeaders()}, other header fields as well.
105104
* <p>
106105
* The returned {@code Promise} will have the result once the operation completes, and the registered
107106
* {@code FutureListener} will be notified, either because the operation was successful or because of an error.
@@ -115,7 +114,7 @@ public interface Producer extends MessageFactory, ServiceLifecycle {
115114

116115
/**
117116
* Sends a message to the specified destination asynchronously, using the specified attributes, the destination
118-
* should be preset to {@link MessageHeaderBuiltinKeys}, other header fields as well.
117+
* should be preset to {@link Message#sysHeaders()}, other header fields as well.
119118
* <p>
120119
* The returned {@code Promise} will have the result once the operation completes, and the registered
121120
* {@code FutureListener} will be notified, either because the operation was successful or because of an error.
@@ -130,7 +129,7 @@ public interface Producer extends MessageFactory, ServiceLifecycle {
130129

131130
/**
132131
* Sends a message to the specified destination in one way, the destination should be preset to
133-
* {@link MessageHeaderBuiltinKeys}, other header fields as well.
132+
* {@link Message#sysHeaders()}, other header fields as well.
134133
* <p>
135134
* There is no {@code Promise} related or {@code RuntimeException} thrown. The calling thread doesn't
136135
* care about the send result and also have no context to get the result.
@@ -141,7 +140,7 @@ public interface Producer extends MessageFactory, ServiceLifecycle {
141140

142141
/**
143142
* Sends a message to the specified destination in one way, using the specified attributes, the destination
144-
* should be preset to {@link MessageHeaderBuiltinKeys}, other header fields as well.
143+
* should be preset to {@link Message#sysHeaders()}, other header fields as well.
145144
* <p>
146145
* There is no {@code Promise} related or {@code RuntimeException} thrown. The calling thread doesn't
147146
* care about the send result and also have no context to get the result.

openmessaging-api/src/main/java/io/openmessaging/routing/Routing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface Routing {
3535
/**
3636
* Returns the attributes of this {@code Routing} instance.
3737
* Changes to the return {@code KeyValue} are not reflected in physical {@code Routing},
38-
* and use {@link ResourceManager#createAndUpdateRouting(String, KeyValue)} to modify.
38+
* and use {@link ResourceManager#setRoutingAttributes(String, String, KeyValue)} to modify.
3939
* <p>
4040
* There are some standard attributes defined by OMS for {@code Routing}:
4141
* <ul>

0 commit comments

Comments
 (0)