diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java index 3abd45ef5..44215fc1b 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolder.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 the original author or authors. + * Copyright 2006-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,10 @@ import org.springframework.batch.repeat.RepeatContext; * Interface for result holder. * * @author Dave Syer + * @author Mahmoud Ben Hassine + * @deprecated since 5.0 with no replacement. Scheduled for removal in 6.0. */ +@Deprecated(since = "5.0", forRemoval = true) interface ResultHolder { /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolderResultQueue.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolderResultQueue.java index c2c3be7b1..b42dbdbaf 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolderResultQueue.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultHolderResultQueue.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,10 @@ import java.util.concurrent.Semaphore; * results, limiting it to a maximum at any given time. * * @author Dave Syer + * @author Mahmoud Ben Hassine + * @deprecated since 5.0 with no replacement. Scheduled for removal in 6.0. */ +@Deprecated(since = "5.0", forRemoval = true) public class ResultHolderResultQueue implements ResultQueue { // Accumulation of result objects as they finish. diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultQueue.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultQueue.java index 0a8e02c45..0325c393c 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultQueue.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ResultQueue.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,10 @@ import org.springframework.core.task.TaskExecutor; * * @author Dave Syer * @author Ben Hale + * @author Mahmoud Ben Hassine + * @deprecated since 5.0 with no replacement. Scheduled for removal in 6.0. */ +@Deprecated(since = "5.0", forRemoval = true) interface ResultQueue { /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ThrottleLimitResultQueue.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ThrottleLimitResultQueue.java index 8b3f1069a..4d73bda59 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ThrottleLimitResultQueue.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/repeat/support/ThrottleLimitResultQueue.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,10 @@ import java.util.concurrent.Semaphore; * results, limiting it to a maximum at any given time. * * @author Dave Syer + * @author Mahmoud Ben Hassine + * @deprecated since 5.0 with no replacement. Scheduled for removal in 6.0. */ +@Deprecated(since = "5.0", forRemoval = true) public class ThrottleLimitResultQueue implements ResultQueue { // Accumulation of result objects as they finish.