@Deprecated public final class RSockets extends Object
| Modifier and Type | Method and Description |
|---|---|
static Function<io.rsocket.RSocket,io.rsocket.RSocket> |
safeClose()
Deprecated.
Provides a mapping function to wrap a
RSocket such that a call to RSocket.dispose() does not cancel all pending requests. |
static Function<io.rsocket.RSocket,io.rsocket.RSocket> |
timeout(Duration timeout)
Deprecated.
Provides a mapping function to wrap a
RSocket such that all requests will timeout, if
not completed after the specified timeout. |
public static Function<io.rsocket.RSocket,io.rsocket.RSocket> timeout(Duration timeout)
RSocket such that all requests will timeout, if
not completed after the specified timeout.timeout - timeout duration.public static Function<io.rsocket.RSocket,io.rsocket.RSocket> safeClose()
RSocket such that a call to RSocket.dispose() does not cancel all pending requests. Instead, it will wait for all pending
requests to finish and then close the socket.