Class PulsarIncomingBatchMessage<T>
java.lang.Object
io.smallrye.reactive.messaging.pulsar.PulsarIncomingBatchMessage<T>
- All Implemented Interfaces:
ContextAwareMessage<List<T>>,MetadataInjectableMessage<List<T>>,PulsarBatchMessage<T>,Iterable<PulsarMessage<T>>,org.eclipse.microprofile.reactive.messaging.Message<List<T>>
public class PulsarIncomingBatchMessage<T>
extends Object
implements PulsarBatchMessage<T>, MetadataInjectableMessage<List<T>>
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.Message
EMPTY_ACK, EMPTY_NACK, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionPulsarIncomingBatchMessage(org.apache.pulsar.client.api.Messages<T> messages, PulsarAckHandler ackHandler, PulsarFailureHandler nackHandler) -
Method Summary
Modifier and TypeMethodDescriptionack(org.eclipse.microprofile.reactive.messaging.Metadata metadata) booleanFunction<org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> org.eclipse.microprofile.reactive.messaging.MetadataBiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, CompletionStage<Void>> inthashCode()voidinjectMetadata(Object metadataObject) iterator()org.apache.pulsar.client.api.Messages<T>unwrap()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.reactive.messaging.providers.locals.ContextAwareMessage
getContextMetadata, runOnMessageContextMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.eclipse.microprofile.reactive.messaging.Message
ack, addMetadata, getAck, getMetadata, getNack, nack, thenApply, unwrap, withAck, withAckWithMetadata, withMetadata, withMetadata, withNack, withNackWithMetadata, withPayload
-
Constructor Details
-
PulsarIncomingBatchMessage
public PulsarIncomingBatchMessage(org.apache.pulsar.client.api.Messages<T> messages, PulsarAckHandler ackHandler, PulsarFailureHandler nackHandler)
-
-
Method Details
-
getPayload
- Specified by:
getPayloadin interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
unwrap
-
getMessages
- Specified by:
getMessagesin interfacePulsarBatchMessage<T>- Returns:
- list of messages contained in this message batch
-
iterator
-
getMetadata
public org.eclipse.microprofile.reactive.messaging.Metadata getMetadata()- Specified by:
getMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
ack
- Specified by:
ackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getAckWithMetadata
public Function<org.eclipse.microprofile.reactive.messaging.Metadata,CompletionStage<Void>> getAckWithMetadata()- Specified by:
getAckWithMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
nack
public CompletionStage<Void> nack(Throwable reason, org.eclipse.microprofile.reactive.messaging.Metadata metadata) - Specified by:
nackin interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
getNackWithMetadata
public BiFunction<Throwable,org.eclipse.microprofile.reactive.messaging.Metadata, getNackWithMetadata()CompletionStage<Void>> - Specified by:
getNackWithMetadatain interfaceorg.eclipse.microprofile.reactive.messaging.Message<T>
-
equals
-
hashCode
public int hashCode() -
injectMetadata
- Specified by:
injectMetadatain interfaceMetadataInjectableMessage<T>
-