@@ -110,7 +110,7 @@ public Sender(SenderOptions options) {
110110 cm = options .getConnectionMonoConfigurator ().apply (cm );
111111 cm = cm .doOnNext (conn -> connection .set (conn ))
112112 .subscribeOn (this .connectionSubscriptionScheduler )
113- .composeNow (this ::cache );
113+ .transform (this ::cache );
114114 } else {
115115 cm = options .getConnectionMono ();
116116 }
@@ -124,7 +124,7 @@ public Sender(SenderOptions options) {
124124 this .resourceManagementScheduler = options .getResourceManagementScheduler () == null ?
125125 createScheduler ("rabbitmq-sender-resource-creation" ) : options .getResourceManagementScheduler ();
126126 this .resourceManagementChannelMono = options .getResourceManagementChannelMono () == null ?
127- connectionMono .map (CHANNEL_PROXY_CREATION_FUNCTION ).composeNow (this ::cache ) : options .getResourceManagementChannelMono ();
127+ connectionMono .map (CHANNEL_PROXY_CREATION_FUNCTION ).transform (this ::cache ) : options .getResourceManagementChannelMono ();
128128 if (options .getConnectionClosingTimeout () != null && !Duration .ZERO .equals (options .getConnectionClosingTimeout ())) {
129129 this .connectionClosingTimeout = (int ) options .getConnectionClosingTimeout ().toMillis ();
130130 } else {
@@ -250,11 +250,11 @@ private BiConsumer<SignalType, Channel> getChannelCloseHandler(SendOptions optio
250250 }
251251
252252 public RpcClient rpcClient (String exchange , String routingKey ) {
253- return new RpcClient (connectionMono .map (CHANNEL_CREATION_FUNCTION ).composeNow (this ::cache ), exchange , routingKey );
253+ return new RpcClient (connectionMono .map (CHANNEL_CREATION_FUNCTION ).transform (this ::cache ), exchange , routingKey );
254254 }
255255
256256 public RpcClient rpcClient (String exchange , String routingKey , Supplier <String > correlationIdProvider ) {
257- return new RpcClient (connectionMono .map (CHANNEL_CREATION_FUNCTION ).composeNow (this ::cache ), exchange , routingKey , correlationIdProvider );
257+ return new RpcClient (connectionMono .map (CHANNEL_CREATION_FUNCTION ).transform (this ::cache ), exchange , routingKey , correlationIdProvider );
258258 }
259259
260260 /**
0 commit comments