类 ResultMessageListener<R>
- java.lang.Object
-
- com.mysql.cj.protocol.x.ResultMessageListener<R>
-
- 所有已实现的接口:
MessageListener<XMessage>
public class ResultMessageListener<R> extends Object implements MessageListener<XMessage>
AMessageListenerto handle result data and propagate it to aResultBuilder.
-
-
构造器概要
构造器 构造器 说明 ResultMessageListener(Map<Class<? extends com.google.protobuf.GeneratedMessageV3>,ProtocolEntityFactory<? extends ProtocolEntity,XMessage>> messageToProtocolEntityFactory, ResultBuilder<R> resultBuilder, CompletableFuture<R> future)
-
-
-
构造器详细资料
-
ResultMessageListener
public ResultMessageListener(Map<Class<? extends com.google.protobuf.GeneratedMessageV3>,ProtocolEntityFactory<? extends ProtocolEntity,XMessage>> messageToProtocolEntityFactory, ResultBuilder<R> resultBuilder, CompletableFuture<R> future)
-
-
方法详细资料
-
processMessage
public boolean processMessage(XMessage message)
从接口复制的说明:MessageListenerProcess protocol message.- 指定者:
processMessage在接口中MessageListener<R>- 参数:
message-Messageinstance- 返回:
- true - if this listener is done with processing the messages sequence and may be discarded; false - if the next message must be dispatched to the same listener
-
error
public void error(Throwable ex)
从接口复制的说明:MessageListenerExceptionally complete underlying Future.- 指定者:
error在接口中MessageListener<R>- 参数:
ex- exception to pass to underlying Future.
-
-