@ -105,6 +105,14 @@ public interface RSocketStrategies {
@@ -105,6 +105,14 @@ public interface RSocketStrategies {
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 } .
@ -118,15 +126,15 @@ public interface RSocketStrategies {
@@ -118,15 +126,15 @@ public interface RSocketStrategies {
Builder encoder ( Encoder < ? > . . . encoder ) ;
/ * *
* Add decoders for de - serializing Objects .
* < p > By default this is empty .
* Access and manipulate the list of configured { @link # encoder encoders } .
* /
Builder decoder ( Decoder < ? > . . . decod er) ;
Builder encoders ( Consumer < List < Encoder < ? > > > consum er) ;
/ * *
* 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 < ? > > > consum er) ;
Builder decoder ( Decoder < ? > . . . decod er) ;
/ * *
* Access and manipulate the list of configured { @link # encoder decoders } .
@ -137,7 +145,7 @@ public interface RSocketStrategies {
@@ -137,7 +145,7 @@ public interface RSocketStrategies {
* Configure the registry for reactive type support . This can be used to
* to adapt to , and / or determine the semantics of a given
* { @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
* /
Builder reactiveAdapterStrategy ( ReactiveAdapterRegistry registry ) ;