@@ -68,6 +68,21 @@ static RSocketRequester.Builder builder() {
68
68
return new DefaultRSocketRequesterBuilder ();
69
69
}
70
70
71
+ // For now we treat metadata as a simple string that is the route.
72
+ // This will change after the resolution of:
73
+ // https://github.com/rsocket/rsocket-java/issues/568
74
+
75
+ /**
76
+ * Entry point to prepare a new request to the given route.
77
+ *
78
+ * <p>For requestChannel interactions, i.e. Flux-to-Flux the metadata is
79
+ * attached to the first request payload.
80
+ *
81
+ * @param route the routing destination
82
+ * @return a spec for further defining and executing the reuqest
83
+ */
84
+ RequestSpec route (String route );
85
+
71
86
/**
72
87
* A mutable builder for creating a client {@link RSocketRequester}.
73
88
*/
@@ -90,15 +105,15 @@ RSocketRequester.Builder rsocketFactory(
90
105
91
106
/**
92
107
* Configure the {@code ClientTransport} for the RSocket connection
93
- * and connect to the RSocket server
108
+ * and connect to the RSocket server.
94
109
* @param transport the chosen client transport
95
110
* @return a mono containing the connected {@code RSocketRequester}
96
111
*/
97
112
Mono <RSocketRequester > connect (ClientTransport transport , MimeType dataMimeType );
98
113
99
114
/**
100
115
* Connect to the RSocket server over TCP transport using the
101
- * provided connection parameters
116
+ * provided connection parameters.
102
117
* @param host the RSocket server host
103
118
* @param port the RSocket server port
104
119
* @param dataMimeType the data MimeType
@@ -108,7 +123,7 @@ RSocketRequester.Builder rsocketFactory(
108
123
109
124
/**
110
125
* Connect to the RSocket server over WebSocket transport using the
111
- * provided connection parameters
126
+ * provided connection parameters.
112
127
* @param uri the RSocket server endpoint URI
113
128
* @param dataMimeType the data MimeType
114
129
* @return a mono containing the connected {@code RSocketRequester}
@@ -117,21 +132,6 @@ RSocketRequester.Builder rsocketFactory(
117
132
118
133
}
119
134
120
- // For now we treat metadata as a simple string that is the route.
121
- // This will change after the resolution of:
122
- // https://github.com/rsocket/rsocket-java/issues/568
123
-
124
- /**
125
- * Entry point to prepare a new request to the given route.
126
- *
127
- * <p>For requestChannel interactions, i.e. Flux-to-Flux the metadata is
128
- * attached to the first request payload.
129
- *
130
- * @param route the routing destination
131
- * @return a spec for further defining and executing the reuqest
132
- */
133
- RequestSpec route (String route );
134
-
135
135
136
136
/**
137
137
* Contract to provide input data for an RSocket request.
0 commit comments