public final class EgressMessageBuilder
extends java.lang.Object
EgressMessage
builder.
To use {code Kafka} specific builder please use KafkaEgressMessage
. To use {code Kinesis} specific egress
please use KinesisEgress
.
Use this builder if you need to send message to a custom egress defined via the embedded SDK.
Modifier and Type | Method and Description |
---|---|
EgressMessage |
build() |
static EgressMessageBuilder |
forEgress(TypeName targetEgress) |
<T> EgressMessageBuilder |
withCustomType(Type<T> customType,
T element) |
EgressMessageBuilder |
withValue(boolean value) |
EgressMessageBuilder |
withValue(double value) |
EgressMessageBuilder |
withValue(float value) |
EgressMessageBuilder |
withValue(int value) |
EgressMessageBuilder |
withValue(long value) |
EgressMessageBuilder |
withValue(java.lang.String value) |
public static EgressMessageBuilder forEgress(TypeName targetEgress)
public EgressMessageBuilder withValue(long value)
public EgressMessageBuilder withValue(int value)
public EgressMessageBuilder withValue(boolean value)
public EgressMessageBuilder withValue(java.lang.String value)
public EgressMessageBuilder withValue(float value)
public EgressMessageBuilder withValue(double value)
public <T> EgressMessageBuilder withCustomType(Type<T> customType, T element)
public EgressMessage build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.