Search in sources :

Example 1 with RSocketClient

use of io.rsocket.core.RSocketClient in project spring-framework by spring-projects.

the class DefaultRSocketRequesterBuilder method transport.

@Override
public RSocketRequester transport(ClientTransport transport) {
    RSocketStrategies strategies = getRSocketStrategies();
    MimeType metaMimeType = getMetadataMimeType();
    MimeType dataMimeType = getDataMimeType(strategies);
    RSocketConnector connector = initConnector(this.rsocketConnectorConfigurers, metaMimeType, dataMimeType, strategies);
    RSocketClient client = RSocketClient.from(connector.connect(transport));
    return new DefaultRSocketRequester(client, null, dataMimeType, metaMimeType, strategies);
}
Also used : RSocketConnector(io.rsocket.core.RSocketConnector) LoadbalanceRSocketClient(io.rsocket.loadbalance.LoadbalanceRSocketClient) RSocketClient(io.rsocket.core.RSocketClient) MimeType(org.springframework.util.MimeType) WellKnownMimeType(io.rsocket.metadata.WellKnownMimeType)

Aggregations

RSocketClient (io.rsocket.core.RSocketClient)1 RSocketConnector (io.rsocket.core.RSocketConnector)1 LoadbalanceRSocketClient (io.rsocket.loadbalance.LoadbalanceRSocketClient)1 WellKnownMimeType (io.rsocket.metadata.WellKnownMimeType)1 MimeType (org.springframework.util.MimeType)1