B - The builder to return in order to be able to apply multiple build
operations.public interface RequestCorrelation<B extends RequestCorrelation<B>>
setRequestCorrelation(boolean) (or the like), then an existing
Request-Correlation-ID might be forwarded by setting it into the
Correlation singleton via Correlation.REQUEST's
Correlation.setId(String). When being disabled, then no
Request-Correlation handling will be done, any existing
Correlation.REQUEST's Correlation.getId() may stay untouched!| Modifier and Type | Method and Description |
|---|---|
default void |
disableRequestCorrelation()
Disables the automatic Request-Correlation mechanism.
|
default void |
enableRequestCorrelation()
Enables the automatic Request-Correlation mechanism.
|
boolean |
hasRequestCorrelation()
Determines whether Request-Correlation is being enabled or disabled.
|
void |
setRequestCorrelation(boolean hasRequestCorrelation)
Enables or disables the automatic Request-Correlation mechanism.
|
B |
withDisableRequestCorrelation()
Builder method for the
disableRequestCorrelation() operation. |
B |
withEnableRequestCorrelation()
Builder method for the
enableRequestCorrelation() operation. |
B |
withRequestCorrelation(boolean hasRequestCorrelation)
Builder method for the
setRequestCorrelation(boolean) operation. |
void setRequestCorrelation(boolean hasRequestCorrelation)
hasRequestCorrelation - When true then Request-Correlation is
enabled, else disabled.B withRequestCorrelation(boolean hasRequestCorrelation)
setRequestCorrelation(boolean) operation.hasRequestCorrelation - When true then Request-Correlation is
enabled, else disabled.default void enableRequestCorrelation()
B withEnableRequestCorrelation()
enableRequestCorrelation() operation.default void disableRequestCorrelation()
B withDisableRequestCorrelation()
disableRequestCorrelation() operation.boolean hasRequestCorrelation()
Copyright © 2017. All rights reserved.