diff --git a/spring-integration-core/src/main/java/org/springframework/integration/dsl/BaseIntegrationFlowDefinition.java b/spring-integration-core/src/main/java/org/springframework/integration/dsl/BaseIntegrationFlowDefinition.java index e2a2c8a314..7fdd4d1925 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/dsl/BaseIntegrationFlowDefinition.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/dsl/BaseIntegrationFlowDefinition.java @@ -2182,9 +2182,6 @@ public abstract class BaseIntegrationFlowDefinition The full request {@link Message} will be logged. - *
When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @return the current {@link BaseIntegrationFlowDefinition}. * @see #wireTap(WireTapSpec) */ @@ -2198,9 +2195,6 @@ public abstract class BaseIntegrationFlowDefinition The full request {@link Message} will be logged. - *
When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @return the current {@link BaseIntegrationFlowDefinition}. * @see #wireTap(WireTapSpec) @@ -2214,9 +2208,6 @@ public abstract class BaseIntegrationFlowDefinition The full request {@link Message} will be logged. - *
When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param category the logging category to use. * @return the current {@link BaseIntegrationFlowDefinition}. * @see #wireTap(WireTapSpec) @@ -2230,9 +2221,6 @@ public abstract class BaseIntegrationFlowDefinition The full request {@link Message} will be logged. - *
When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @param category the logging category to use. * @return the current {@link BaseIntegrationFlowDefinition}. @@ -2247,9 +2235,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @param category the logging category. * @param logExpression the SpEL expression to evaluate logger message at runtime @@ -2267,9 +2252,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param function the function to evaluate logger message at runtime * @param
the expected payload type. * against the request {@link Message}. @@ -2287,9 +2269,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param logExpression the {@link Expression} to evaluate logger message at runtime * against the request {@link Message}. * @return the current {@link BaseIntegrationFlowDefinition}. @@ -2306,9 +2285,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @param logExpression the {@link Expression} to evaluate logger message at runtime * against the request {@link Message}. @@ -2325,9 +2301,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param category the logging category. * @param logExpression the {@link Expression} to evaluate logger message at runtime * against the request {@link Message}. @@ -2344,9 +2317,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @param function the function to evaluate logger message at runtime * @param
the expected payload type. @@ -2363,9 +2333,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param category the logging category. * @param function the function to evaluate logger message at runtime * @param
the expected payload type. @@ -2382,9 +2349,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @param category the logging category. * @param function the function to evaluate logger message at runtime @@ -2403,9 +2367,6 @@ public abstract class BaseIntegrationFlowDefinition When this operator is used in the end of flow, it is treated - * as one-way handler without any replies to continue. - * The {@link #logAndReply()} should be used for request-reply configuration. * @param level the {@link LoggingHandler.Level}. * @param category the logging category. * @param logExpression the {@link Expression} to evaluate logger message at runtime @@ -2441,9 +2402,11 @@ public abstract class BaseIntegrationFlowDefinition This operator can be used only in the end of flow. * @return an {@link IntegrationFlow} instance based on this builder. + * @deprecated since 6.0 in favor of {@link #log} in the end of flow. * @see #log() * @see #bridge() */ + @Deprecated public IntegrationFlow logAndReply() { return logAndReply(LoggingHandler.Level.INFO); } @@ -2459,9 +2422,11 @@ public abstract class BaseIntegrationFlowDefinition This operator can be used only in the end of flow. * @param level the {@link LoggingHandler.Level}. * @return an {@link IntegrationFlow} instance based on this builder. + * @deprecated since 6.0 in favor of {@link #log} in the end of flow. * @see #log() * @see #bridge() */ + @Deprecated public IntegrationFlow logAndReply(LoggingHandler.Level level) { return logAndReply(level, (String) null); } @@ -2476,9 +2441,11 @@ public abstract class BaseIntegrationFlowDefinition This operator can be used only in the end of flow. * @param category the logging category to use. * @return an {@link IntegrationFlow} instance based on this builder. + * @deprecated since 6.0 in favor of {@link #log} in the end of flow. * @see #log() * @see #bridge() */ + @Deprecated public IntegrationFlow logAndReply(String category) { return logAndReply(LoggingHandler.Level.INFO, category); } @@ -2494,9 +2461,11 @@ public abstract class BaseIntegrationFlowDefinition the expected payload type. * against the request {@link Message}. * @return an {@link IntegrationFlow} instance based on this builder. + * @deprecated since 6.0 in favor of {@link #log} in the end of flow. * @see #log() * @see #bridge() */ + @Deprecated public
IntegrationFlow logAndReply(Function IntegrationFlow logAndReply(LoggingHandler.Level level, Function IntegrationFlow logAndReply(String category, Function IntegrationFlow logAndReply(LoggingHandler.Level level, String category,
Function