Skip to content

Commit 83abf20

Browse files
author
vongosling
committed
minor polish
1 parent 8e17939 commit 83abf20

2 files changed

Lines changed: 3 additions & 29 deletions

File tree

openmessaging-api/src/main/java/io/openmessaging/Message.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ interface Headers {
174174
/**
175175
* The {@code messagekey} header field contains the custom key of a message.
176176
* <p>
177-
* This key is a customer identifier for a class of messages, and this key may be used for server to shard or
177+
* This key is a customer identifier for a class of messages, and this key may be used for server to hash or
178178
* dispatch messages, or even can use this key to implement order message.
179179
* <p>
180180
*/
@@ -346,15 +346,15 @@ interface Headers {
346346
KeyValue properties();
347347

348348
/**
349-
* Get message body
349+
* Get data from message body
350350
*
351351
* @return message body
352352
* @throws OMSMessageFormatException if the message body cannot be assigned to the specified type
353353
*/
354354
byte[] getData();
355355

356356
/**
357-
* Set message body
357+
* Set data to message body
358358
*
359359
* @param data set message body in binary stream
360360
*/

openmessaging-api/src/main/java/io/openmessaging/OMSBuiltinKeys.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,4 @@ public interface OMSBuiltinKeys {
4545
* The {@code REGION} key shows the specified region in OMS driver schema.
4646
*/
4747
String REGION = "REGION";
48-
49-
/**
50-
* The {@code OPERATION_TIMEOUT} key defines the timeout of almost all the method calls in OMS.
51-
*/
52-
String OPERATION_TIMEOUT = "OPERATION_TIMEOUT";
53-
54-
/**
55-
* The {@code ROUTING_SOURCE} key shows the source queue of a {@code Routing} instance.
56-
* <p>
57-
* The {@code Routing} consists of a triple, include source queue, destination queue and expression.
58-
*/
59-
String ROUTING_SOURCE = "ROUTING_SOURCE";
60-
61-
/**
62-
* The {@code ROUTING_DESTINATION} key shows the destination queue of a {@code Routing} instance.
63-
* <p>
64-
* The {@code Routing} consists of a triple, include source queue, destination queue and expression.
65-
*/
66-
String ROUTING_DESTINATION = "ROUTING_DESTINATION";
67-
68-
/**
69-
* The {@code ROUTING_EXPRESSION} key shows the expression of a {@code Routing} instance.
70-
* <p>
71-
* The {@code Routing} consists of a triple, include source queue, destination queue and expression.
72-
*/
73-
String ROUTING_EXPRESSION = "ROUTING_EXPRESSION";
7448
}

0 commit comments

Comments
 (0)