Align RSocket module with the latest SF

* Upgrade to RSocket API `1.0.0-RC3-SNAPSHOT`
* Use the same `rSocketMessageHandler.responder()` callback
for client and server rsocket factories configuration
* Clean up `ClientRSocketConnector` and `ServerRSocketConnector`
JavaDocs not mentioning overriding any more
* Use `WellKnownMimeType.MESSAGE_RSOCKET_COMPOSITE_METADATA` constant
instead of built-in literal
* Fix `RSocketOutboundGatewayIntegrationTests` according the SF changes
This commit is contained in:
Artem Bilan
2019-08-27 16:46:57 -04:00
parent 5073da8a1b
commit ff15d5265d
5 changed files with 10 additions and 17 deletions

View File

@@ -119,7 +119,7 @@ public class RSocketOutboundGatewayIntegrationTests {
serverContext = new AnnotationConfigApplicationContext(ServerConfig.class);
server = RSocketFactory.receive()
.frameDecoder(PayloadDecoder.ZERO_COPY)
.acceptor(serverContext.getBean(RSocketMessageHandler.class).serverResponder())
.acceptor(serverContext.getBean(RSocketMessageHandler.class).responder())
.transport(TcpServerTransport.create("localhost", 0))
.start()
.block();
@@ -531,7 +531,7 @@ public class RSocketOutboundGatewayIntegrationTests {
.dataMimeType("text/plain")
.metadataMimeType("message/x.rsocket.routing.v0")
.frameDecoder(PayloadDecoder.ZERO_COPY)
.acceptor(messageHandler().clientResponder())
.acceptor(messageHandler().responder())
.transport(TcpClientTransport.create("localhost", server.address().getPort()))
.start()
.block();