This is an automated email from the ASF dual-hosted git repository.

penghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 222e91db4eb [fix][doc]fix typo in Message and RawMessage (#24416)
222e91db4eb is described below

commit 222e91db4eb4ef577aa69ccc139c0754ef34c26d
Author: Ruimin MA <[email protected]>
AuthorDate: Wed Jun 18 00:48:02 2025 +0800

    [fix][doc]fix typo in Message and RawMessage (#24416)
---
 .../src/main/java/org/apache/pulsar/client/api/Message.java       | 8 ++++----
 .../main/java/org/apache/pulsar/common/api/raw/RawMessage.java    | 7 ++++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java 
b/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java
index e5876b849e1..3be6a06153b 100644
--- a/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java
+++ b/pulsar-client-api/src/main/java/org/apache/pulsar/client/api/Message.java
@@ -102,11 +102,11 @@ public interface Message<T> {
 
     /**
      * Get the event time associated with this message. It is typically set by 
the applications via
-     * {@link MessageBuilder#setEventTime(long)}.
+     * {@link TypedMessageBuilder#eventTime(long)}.
      *
      * <p>If there isn't any event time associated with this event, it will 
return 0.
      *
-     * @see MessageBuilder#setEventTime(long)
+     * @see TypedMessageBuilder#eventTime(long)
      * @since 1.20.0
      * @return the message event time or 0 if event time wasn't set
      */
@@ -114,10 +114,10 @@ public interface Message<T> {
 
     /**
      * Get the sequence id associated with this message. It is typically set 
by the applications via
-     * {@link MessageBuilder#setSequenceId(long)}.
+     * {@link TypedMessageBuilder#sequenceId(long)}.
      *
      * @return sequence id associated with this message.
-     * @see MessageBuilder#setEventTime(long)
+     * @see TypedMessageBuilder#sequenceId(long)
      * @since 1.22.0
      */
     long getSequenceId();
diff --git 
a/pulsar-common/src/main/java/org/apache/pulsar/common/api/raw/RawMessage.java 
b/pulsar-common/src/main/java/org/apache/pulsar/common/api/raw/RawMessage.java
index a02208396fc..d3e62d9933b 100644
--- 
a/pulsar-common/src/main/java/org/apache/pulsar/common/api/raw/RawMessage.java
+++ 
b/pulsar-common/src/main/java/org/apache/pulsar/common/api/raw/RawMessage.java
@@ -21,6 +21,7 @@ package org.apache.pulsar.common.api.raw;
 import io.netty.buffer.ByteBuf;
 import java.util.Map;
 import java.util.Optional;
+import org.apache.pulsar.client.api.TypedMessageBuilder;
 
 /**
  * View of a message that exposes the internal direct-memory buffer for more 
efficient processing.
@@ -72,7 +73,7 @@ public interface RawMessage {
 
     /**
      * Get the event time associated with this message. It is typically set by 
the applications via
-     * {@link MessageBuilder#setEventTime(long)}.
+     * {@link TypedMessageBuilder#eventTime(long)}.
      *
      * <p>If there isn't any event time associated with this event, it will 
return 0.
      */
@@ -80,10 +81,10 @@ public interface RawMessage {
 
     /**
      * Get the sequence id associated with this message. It is typically set 
by the applications via
-     * {@link MessageBuilder#setSequenceId(long)}.
+     * {@link TypedMessageBuilder#sequenceId(long)}.
      *
      * @return sequence id associated with this message.
-     * @see MessageBuilder#setEventTime(long)
+     * @see TypedMessageBuilder#sequenceId(long)
      */
     long getSequenceId();
 

Reply via email to