Package akka.javasdk.consumer
Interface Consumer.Effect.Builder
- Enclosing interface:
Consumer.Effect
public static interface Consumer.Effect.Builder
Construct the effect that is returned by the message handler.
-
Method Summary
Modifier and TypeMethodDescriptionasyncDone
(CompletionStage<akka.Done> message) Mark message as processed from an async operation resultasyncEffect
(CompletionStage<Consumer.Effect> futureEffect) Create an async operation result returning an effect.<S> Consumer.Effect
asyncProduce
(CompletionStage<S> message) Produce a message from an async operation result.<S> Consumer.Effect
asyncProduce
(CompletionStage<S> message, Metadata metadata) Produce a message from an async operation result with custom Metadata.done()
Mark message as processed.ignore()
Ignore the current message and proceed with processing the next message<S> Consumer.Effect
produce
(S message) Produce a message.<S> Consumer.Effect
Produce a message with custom Metadata.
-
Method Details
-
done
Consumer.Effect done()Mark message as processed. -
asyncDone
Mark message as processed from an async operation result -
produce
Produce a message.- Type Parameters:
S
- The type of the message.- Parameters:
message
- The payload of the message.
-
produce
Produce a message with custom Metadata.- Parameters:
message
- The payload of the message.metadata
- The metadata for the message.
-
asyncProduce
Produce a message from an async operation result.- Parameters:
message
- The future payload of the message.
-
asyncProduce
Produce a message from an async operation result with custom Metadata.- Parameters:
message
- The future payload of the message.metadata
- The metadata for the message.
-
asyncEffect
Create an async operation result returning an effect.- Parameters:
futureEffect
- The future effect.
-
ignore
Consumer.Effect ignore()Ignore the current message and proceed with processing the next message
-