类 MessagingServiceGrpc.MessagingServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<MessagingServiceGrpc.MessagingServiceFutureStub>
-
- apache.rocketmq.v2.MessagingServiceGrpc.MessagingServiceFutureStub
-
- 封闭类:
- MessagingServiceGrpc
public static final class MessagingServiceGrpc.MessagingServiceFutureStub extends io.grpc.stub.AbstractFutureStub<MessagingServiceGrpc.MessagingServiceFutureStub>
For all the RPCs in MessagingService, the following error handling policies apply: If the request doesn't bear a valid authentication credential, return a response with common.status.code == `UNAUTHENTICATED`. If the authenticated user is not granted with sufficient permission to execute the requested operation, return a response with common.status.code == `PERMISSION_DENIED`. If the per-user-resource-based quota is exhausted, return a response with common.status.code == `RESOURCE_EXHAUSTED`. If any unexpected server-side errors raise, return a response with common.status.code == `INTERNAL`.
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 com.google.common.util.concurrent.ListenableFuture<AckMessageResponse>ackMessage(AckMessageRequest request)Acknowledges the message associated with the `receipt_handle` or `offset` in the `AckMessageRequest`, it means the message has been successfully processed.protected MessagingServiceGrpc.MessagingServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)com.google.common.util.concurrent.ListenableFuture<ChangeInvisibleDurationResponse>changeInvisibleDuration(ChangeInvisibleDurationRequest request)Once a message is retrieved from consume queue on behalf of the group, it will be kept invisible to other clients of the same group for a period of time.com.google.common.util.concurrent.ListenableFuture<EndTransactionResponse>endTransaction(EndTransactionRequest request)Commits or rollback one transactional message.com.google.common.util.concurrent.ListenableFuture<ForwardMessageToDeadLetterQueueResponse>forwardMessageToDeadLetterQueue(ForwardMessageToDeadLetterQueueRequest request)Forwards one message to dead letter queue if the max delivery attempts is exceeded by this message at client-side, return `OK` if success.com.google.common.util.concurrent.ListenableFuture<HeartbeatResponse>heartbeat(HeartbeatRequest request)Producer or consumer sends HeartbeatRequest to servers periodically to keep-alive.com.google.common.util.concurrent.ListenableFuture<NotifyClientTerminationResponse>notifyClientTermination(NotifyClientTerminationRequest request)Notify the server that the client is terminated.com.google.common.util.concurrent.ListenableFuture<QueryAssignmentResponse>queryAssignment(QueryAssignmentRequest request)Queries the assigned route info of a topic for current consumer, the returned assignment result is decided by server-side load balancer.com.google.common.util.concurrent.ListenableFuture<QueryRouteResponse>queryRoute(QueryRouteRequest request)Queries the route entries of the requested topic in the perspective of the given endpoints.com.google.common.util.concurrent.ListenableFuture<SendMessageResponse>sendMessage(SendMessageRequest request)Delivers messages to brokers.
-
-
-
方法详细资料
-
build
protected MessagingServiceGrpc.MessagingServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- 指定者:
build在类中io.grpc.stub.AbstractStub<MessagingServiceGrpc.MessagingServiceFutureStub>
-
queryRoute
public com.google.common.util.concurrent.ListenableFuture<QueryRouteResponse> queryRoute(QueryRouteRequest request)
Queries the route entries of the requested topic in the perspective of the given endpoints. On success, servers should return a collection of addressable message-queues. Note servers may return customized route entries based on endpoints provided. If the requested topic doesn't exist, returns `NOT_FOUND`. If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
-
heartbeat
public com.google.common.util.concurrent.ListenableFuture<HeartbeatResponse> heartbeat(HeartbeatRequest request)
Producer or consumer sends HeartbeatRequest to servers periodically to keep-alive. Additionally, it also reports client-side configuration, including topic subscription, load-balancing group name, etc. Returns `OK` if success. If a client specifies a language that is not yet supported by servers, returns `INVALID_ARGUMENT`
-
sendMessage
public com.google.common.util.concurrent.ListenableFuture<SendMessageResponse> sendMessage(SendMessageRequest request)
Delivers messages to brokers. Clients may further: 1. Refine a message destination to message-queues which fulfills parts of FIFO semantic; 2. Flag a message as transactional, which keeps it invisible to consumers until it commits; 3. Time a message, making it invisible to consumers till specified time-point; 4. And more... Returns message-id or transaction-id with status `OK` on success. If the destination topic doesn't exist, returns `NOT_FOUND`.
-
queryAssignment
public com.google.common.util.concurrent.ListenableFuture<QueryAssignmentResponse> queryAssignment(QueryAssignmentRequest request)
Queries the assigned route info of a topic for current consumer, the returned assignment result is decided by server-side load balancer. If the corresponding topic doesn't exist, returns `NOT_FOUND`. If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
-
ackMessage
public com.google.common.util.concurrent.ListenableFuture<AckMessageResponse> ackMessage(AckMessageRequest request)
Acknowledges the message associated with the `receipt_handle` or `offset` in the `AckMessageRequest`, it means the message has been successfully processed. Returns `OK` if the message server remove the relevant message successfully. If the given receipt_handle is illegal or out of date, returns `INVALID_ARGUMENT`.
-
forwardMessageToDeadLetterQueue
public com.google.common.util.concurrent.ListenableFuture<ForwardMessageToDeadLetterQueueResponse> forwardMessageToDeadLetterQueue(ForwardMessageToDeadLetterQueueRequest request)
Forwards one message to dead letter queue if the max delivery attempts is exceeded by this message at client-side, return `OK` if success.
-
endTransaction
public com.google.common.util.concurrent.ListenableFuture<EndTransactionResponse> endTransaction(EndTransactionRequest request)
Commits or rollback one transactional message.
-
notifyClientTermination
public com.google.common.util.concurrent.ListenableFuture<NotifyClientTerminationResponse> notifyClientTermination(NotifyClientTerminationRequest request)
Notify the server that the client is terminated.
-
changeInvisibleDuration
public com.google.common.util.concurrent.ListenableFuture<ChangeInvisibleDurationResponse> changeInvisibleDuration(ChangeInvisibleDurationRequest request)
Once a message is retrieved from consume queue on behalf of the group, it will be kept invisible to other clients of the same group for a period of time. The message is supposed to be processed within the invisible duration. If the client, which is in charge of the invisible message, is not capable of processing the message timely, it may use ChangeInvisibleDuration to lengthen invisible duration.
-
-