接口的使用
org.apache.pulsar.client.api.Reader
使用Reader的程序包
-
org.apache.pulsar.client.api中Reader的使用
返回变量类型为Reader的类型的org.apache.pulsar.client.api中的方法修饰符和类型方法说明ReaderBuilder.createAsync()Finalize the creation of theReaderinstance in asynchronous mode.参数类型为Reader的org.apache.pulsar.client.api中的方法修饰符和类型方法说明ReaderInterceptor.beforeRead(Reader<T> reader, Message<T> message) This is called just before the message is returned byreadNext(),ReaderListener.received(Reader, Message)or theCompletableFuturereturned byreadNextAsync()completes.default voidReaderListener.reachedEndOfTopic(Reader<T> reader) Get the notification when a topic is terminated.voidThis method is called whenever a new message is received.