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

@@ -171,6 +171,7 @@ public class FunctionRegistration<T> implements BeanNameAware {
* @return {@code FunctionRegistration} with the appropriately wrapped target. * @return {@code FunctionRegistration} with the appropriately wrapped target.
* *
*/ */
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked", "rawtypes" })
public <S> FunctionRegistration<S> wrap() { public <S> FunctionRegistration<S> wrap() {
this.isFunctionSignatureSupported(); this.isFunctionSignatureSupported();

View File

@@ -29,7 +29,10 @@ import reactor.core.publisher.Mono;
* @author Dave Syer * @author Dave Syer
* @author Oleg Zhurakousky * @author Oleg Zhurakousky
* @see FluxedConsumer * @see FluxedConsumer
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public class FluxConsumer<I> public class FluxConsumer<I>
extends WrappedFunction<I, Void, Flux<I>, Mono<Void>, Consumer<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 * @param <O> output type of target function
* @author Mark Fisher * @author Mark Fisher
* @author Oleg Zhurakousky * @author Oleg Zhurakousky
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public class FluxFunction<I, O> public class FluxFunction<I, O>
extends WrappedFunction<I, O, Flux<I>, Flux<O>, Function<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 * @param <T> output type of target supplier
* @author Mark Fisher * @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>> { public class FluxSupplier<T> implements Supplier<Flux<T>>, FluxWrapper<Supplier<T>> {
private final Supplier<T> supplier; 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 * @param <O> type of {@link Mono} output of the target function
* @author Oleg Zhurakousky * @author Oleg Zhurakousky
* @since 2.0 * @since 2.0
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public class FluxToMonoFunction<I, O> public class FluxToMonoFunction<I, O>
extends WrappedFunction<I, O, Flux<I>, Mono<O>, Function<Flux<I>, Mono<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 * @param <T> target type
* @author Dave Syer * @author Dave Syer
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public interface FluxWrapper<T> { public interface FluxWrapper<T> {
T getTarget(); T getTarget();

View File

@@ -31,7 +31,10 @@ import reactor.core.publisher.Mono;
* @since 2.0.1 * @since 2.0.1
* @see FluxConsumer * @see FluxConsumer
* *
* @deprecated since 3.1 no longer used by the framework
*
*/ */
@Deprecated
public class FluxedConsumer<I> public class FluxedConsumer<I>
extends WrappedFunction<I, Void, Flux<I>, Mono<Void>, Consumer<Flux<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 * @param <O> output type of target function
* @author Oleg Zhurakousky * @author Oleg Zhurakousky
* @since 2.0.1 * @since 2.0.1
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public class FluxedFunction<I, O> public class FluxedFunction<I, O>
extends WrappedFunction<I, O, Flux<I>, Flux<O>, Function<Flux<I>, Flux<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 * @param <F> target type
* @author Dave Syer * @author Dave Syer
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public interface FunctionFactoryMetadata<F> { public interface FunctionFactoryMetadata<F> {
Method getFactoryMethod(); Method getFactoryMethod();

View File

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

View File

@@ -27,7 +27,10 @@ import reactor.core.publisher.Mono;
* @param <T> output type of target supplier * @param <T> output type of target supplier
* @author Mark Fisher * @author Mark Fisher
* @since 2.1 * @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>> { public class MonoSupplier<T> implements Supplier<Mono<T>>, FluxWrapper<Supplier<T>> {
private final Supplier<T> supplier; 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 * @param <O> type of {@link Flux} output of the target function
* @author Oleg Zhurakousky * @author Oleg Zhurakousky
* @since 2.0 * @since 2.0
*
* @deprecated since 3.1 no longer used by the framework
*/ */
@Deprecated
public class MonoToFluxFunction<I, O> public class MonoToFluxFunction<I, O>
extends WrappedFunction<I, O, Mono<I>, Flux<O>, Function<Mono<I>, Flux<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}) * {@link Consumer})
* @author Oleg Zhurakousky * @author Oleg Zhurakousky
* @since 2.0.1 * @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> public abstract class WrappedFunction<I, O, IP extends Publisher<I>, OP extends Publisher<O>, T>
implements Function<IP, OP>, FluxWrapper<T> { implements Function<IP, OP>, FluxWrapper<T> {