Class RepublishBuilder
-
- All Implemented Interfaces:
public final class RepublishBuilderBuilder for Republish configuration
-
-
Field Summary
Fields Modifier and Type Field Description private Stringsourceprivate Stringdestinationprivate BooleanheadersOnly
-
Constructor Summary
Constructors Constructor Description RepublishBuilder()
-
Method Summary
Modifier and Type Method Description final StringgetSource()Subject filter selecting which published messages are republished null- the default - republishes everything the stream captures.final UnitsetSource(String value)Subject filter selecting which published messages are republished null- the default - republishes everything the stream captures.final StringgetDestination()Subject template the copy is published toSupports the $1,$2… tokens matched by wildcards in source, sosource = "orders.*"withdestination = "mirror.$1"sendsorders.createdon tomirror.created.final UnitsetDestination(String value)Subject template the copy is published toSupports the $1,$2… tokens matched by wildcards in source, sosource = "orders.*"withdestination = "mirror.$1"sendsorders.createdon tomirror.created.final BooleangetHeadersOnly()Republish the headers without the body final UnitsetHeadersOnly(Boolean value)Republish the headers without the body -
-
Method Detail
-
getSource
final String getSource()
Subject filter selecting which published messages are republished
null- the default - republishes everything the stream captures.
-
setSource
final Unit setSource(String value)
Subject filter selecting which published messages are republished
null- the default - republishes everything the stream captures.
-
getDestination
final String getDestination()
Subject template the copy is published to
Supports the
$1,$2… tokens matched by wildcards in source, sosource = "orders.*"withdestination = "mirror.$1"sendsorders.createdon tomirror.created.
-
setDestination
final Unit setDestination(String value)
Subject template the copy is published to
Supports the
$1,$2… tokens matched by wildcards in source, sosource = "orders.*"withdestination = "mirror.$1"sendsorders.createdon tomirror.created.
-
getHeadersOnly
final Boolean getHeadersOnly()
Republish the headers without the body
-
setHeadersOnly
final Unit setHeadersOnly(Boolean value)
Republish the headers without the body
-
-
-
-