Deprecate Flux* function interfaces

This commit is contained in:
Oleg Zhurakousky
2020-10-19 13:20:51 +02:00
parent 89466b5cdc
commit b61b24a9b2
13 changed files with 36 additions and 0 deletions

View File

@@ -29,7 +29,10 @@ import reactor.core.publisher.Mono;
* @author Dave Syer
* @author Oleg Zhurakousky
* @see FluxedConsumer
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class FluxConsumer<I>
extends WrappedFunction<I, Void, Flux<I>, Mono<Void>, Consumer<I>> {

View File

@@ -28,7 +28,10 @@ import reactor.core.publisher.Flux;
* @param <O> output type of target function
* @author Mark Fisher
* @author Oleg Zhurakousky
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class FluxFunction<I, O>
extends WrappedFunction<I, O, Flux<I>, Flux<O>, Function<I, O>> {

View File

@@ -31,7 +31,10 @@ import reactor.core.publisher.Flux;
*
* @param <T> output type of target supplier
* @author Mark Fisher
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class FluxSupplier<T> implements Supplier<Flux<T>>, FluxWrapper<Supplier<T>> {
private final Supplier<T> supplier;

View File

@@ -33,7 +33,10 @@ import reactor.core.publisher.Mono;
* @param <O> type of {@link Mono} output of the target function
* @author Oleg Zhurakousky
* @since 2.0
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class FluxToMonoFunction<I, O>
extends WrappedFunction<I, O, Flux<I>, Mono<O>, Function<Flux<I>, Mono<O>>> {

View File

@@ -19,7 +19,10 @@ package org.springframework.cloud.function.core;
/**
* @param <T> target type
* @author Dave Syer
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public interface FluxWrapper<T> {
T getTarget();

View File

@@ -31,7 +31,10 @@ import reactor.core.publisher.Mono;
* @since 2.0.1
* @see FluxConsumer
*
* @deprecated since 3.1 no longer used by the framework
*
*/
@Deprecated
public class FluxedConsumer<I>
extends WrappedFunction<I, Void, Flux<I>, Mono<Void>, Consumer<Flux<I>>> {

View File

@@ -28,7 +28,10 @@ import reactor.core.publisher.Flux;
* @param <O> output type of target function
* @author Oleg Zhurakousky
* @since 2.0.1
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class FluxedFunction<I, O>
extends WrappedFunction<I, O, Flux<I>, Flux<O>, Function<Flux<I>, Flux<O>>> {

View File

@@ -21,7 +21,10 @@ import java.lang.reflect.Method;
/**
* @param <F> target type
* @author Dave Syer
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public interface FunctionFactoryMetadata<F> {
Method getFactoryMethod();

View File

@@ -23,7 +23,9 @@ import org.springframework.util.ClassUtils;
/**
* @param <T> supplied type
* @author Dave Syer
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class IsolatedSupplier<T> implements Supplier<T>, Isolated {
private final Supplier<T> supplier;

View File

@@ -27,7 +27,10 @@ import reactor.core.publisher.Mono;
* @param <T> output type of target supplier
* @author Mark Fisher
* @since 2.1
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class MonoSupplier<T> implements Supplier<Mono<T>>, FluxWrapper<Supplier<T>> {
private final Supplier<T> supplier;

View File

@@ -28,7 +28,10 @@ import reactor.core.publisher.Mono;
* @param <O> type of {@link Flux} output of the target function
* @author Oleg Zhurakousky
* @since 2.0
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public class MonoToFluxFunction<I, O>
extends WrappedFunction<I, O, Mono<I>, Flux<O>, Function<Mono<I>, Flux<O>>> {

View File

@@ -34,7 +34,10 @@ import org.reactivestreams.Publisher;
* {@link Consumer})
* @author Oleg Zhurakousky
* @since 2.0.1
*
* @deprecated since 3.1 no longer used by the framework
*/
@Deprecated
public abstract class WrappedFunction<I, O, IP extends Publisher<I>, OP extends Publisher<O>, T>
implements Function<IP, OP>, FluxWrapper<T> {