Fix compatibility with Reactor & Spring Data

This commit is contained in:
Artem Bilan
2020-08-05 15:33:24 -04:00
parent acdc25a172
commit cd63763bb4
18 changed files with 213 additions and 186 deletions

View File

@@ -180,7 +180,7 @@ public class RSocketInboundGatewayIntegrationTests {
@EnableIntegration
static class ServerConfig extends CommonConfig {
final Sinks.StandaloneMonoSink<RSocketRequester> clientRequester = Sinks.promise();
final Sinks.One<RSocketRequester> clientRequester = Sinks.one();
@Bean
public CloseableChannel rsocketServer() {
@@ -203,7 +203,7 @@ public class RSocketInboundGatewayIntegrationTests {
@EventListener
public void onApplicationEvent(RSocketConnectedEvent event) {
this.clientRequester.success(event.getRequester());
this.clientRequester.emitValue(event.getRequester());
}
}

View File

@@ -538,13 +538,13 @@ public class RSocketOutboundGatewayIntegrationTests {
@Controller
static class TestController {
final Sinks.StandaloneFluxSink<String> fireForgetPayloads = Sinks.replayAll();
final Sinks.Many<String> fireForgetPayloads = Sinks.many().replay().all();
final Sinks.StandaloneMonoSink<RSocketRequester> clientRequester = Sinks.promise();
final Sinks.One<RSocketRequester> clientRequester = Sinks.one();
@MessageMapping("receive")
void receive(String payload) {
this.fireForgetPayloads.next(payload);
this.fireForgetPayloads.emitNext(payload);
}
@MessageMapping("echo")
@@ -596,7 +596,7 @@ public class RSocketOutboundGatewayIntegrationTests {
@ConnectMapping("clientConnect")
void clientConnect(RSocketRequester requester) {
this.clientRequester.success(requester);
this.clientRequester.emitValue(requester);
}
}