|
|
@ -105,6 +105,14 @@ public interface RSocketStrategies { |
|
|
|
return new DefaultRSocketStrategies.DefaultRSocketStrategiesBuilder(); |
|
|
|
return new DefaultRSocketStrategies.DefaultRSocketStrategiesBuilder(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Return a builder to create a new {@link RSocketStrategies} instance |
|
|
|
|
|
|
|
* replicated from the current instance. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
default Builder mutate() { |
|
|
|
|
|
|
|
return new DefaultRSocketStrategies.DefaultRSocketStrategiesBuilder(this); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The builder options for creating {@code RSocketStrategies}. |
|
|
|
* The builder options for creating {@code RSocketStrategies}. |
|
|
@ -118,15 +126,15 @@ public interface RSocketStrategies { |
|
|
|
Builder encoder(Encoder<?>... encoder); |
|
|
|
Builder encoder(Encoder<?>... encoder); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Add decoders for de-serializing Objects. |
|
|
|
* Access and manipulate the list of configured {@link #encoder encoders}. |
|
|
|
* <p>By default this is empty. |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Builder decoder(Decoder<?>... decoder); |
|
|
|
Builder encoders(Consumer<List<Encoder<?>>> consumer); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Access and manipulate the list of configured {@link #encoder encoders}. |
|
|
|
* Add decoders for de-serializing Objects. |
|
|
|
|
|
|
|
* <p>By default this is empty. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Builder encoders(Consumer<List<Encoder<?>>> consumer); |
|
|
|
Builder decoder(Decoder<?>... decoder); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Access and manipulate the list of configured {@link #encoder decoders}. |
|
|
|
* Access and manipulate the list of configured {@link #encoder decoders}. |
|
|
@ -137,7 +145,7 @@ public interface RSocketStrategies { |
|
|
|
* Configure the registry for reactive type support. This can be used to |
|
|
|
* Configure the registry for reactive type support. This can be used to |
|
|
|
* to adapt to, and/or determine the semantics of a given |
|
|
|
* to adapt to, and/or determine the semantics of a given |
|
|
|
* {@link org.reactivestreams.Publisher Publisher}. |
|
|
|
* {@link org.reactivestreams.Publisher Publisher}. |
|
|
|
* <p>By default this {@link ReactiveAdapterRegistry#sharedInstance}. |
|
|
|
* <p>By default this {@link ReactiveAdapterRegistry#getSharedInstance()}. |
|
|
|
* @param registry the registry to use |
|
|
|
* @param registry the registry to use |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
Builder reactiveAdapterStrategy(ReactiveAdapterRegistry registry); |
|
|
|
Builder reactiveAdapterStrategy(ReactiveAdapterRegistry registry); |
|
|
|