Skip to content

Commit f171b7a

Browse files
committed
Add comment
1 parent d6aa89f commit f171b7a

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
package io.openmessaging;
22

3+
/**
4+
* A collection of all service states.
5+
*
6+
* @version OMS 1.0.0
7+
* @since OMS 1.0.0
8+
*/
39
public enum ServiceLifeState {
410

511
/**
612
* Service just created
713
*/
8-
CREATE,
14+
CREATED,
915

1016
/**
1117
* Service in starting

openmessaging-api/src/main/java/io/openmessaging/internal/InternalErrorCode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public enum InternalErrorCode {
2828
IMPL_VERSION_ILLEGAL(10002, "The implementation version [%s] is illegal."),
2929
SPEC_IMPL_VERSION_MISMATCH(10003, "The implementation version [%s] isn't compatible with the specification version [%s].");
3030

31-
String refBase = "http://openmessaging.cloud/internal/error-code";
31+
String refBase = "http://openmessaging.cloud/internal/code";
3232
String message;
3333
int errorCode;
3434

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package io.openmessaging.producer;
22

3+
/**
4+
* The result of sending a OMS prepare message to server with the message id, this result can be used to commits or or
5+
* rolls back a prepare message.
6+
*
7+
* @version OMS 1.0.0
8+
* @since OMS 1.0.0
9+
*/
310
public interface TransactionalResult extends SendResult {
411
/**
512
* The unique transactionId id related to the {@code TransactionResult} instance.

0 commit comments

Comments
 (0)