public final class ReactiveSockets
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Function<io.reactivesocket.ReactiveSocket,io.reactivesocket.ReactiveSocket> |
safeClose()
Provides a mapping function to wrap a
ReactiveSocket such that a call to ReactiveSocket.close()
does not cancel all pending requests. |
static java.util.function.Function<io.reactivesocket.ReactiveSocket,io.reactivesocket.ReactiveSocket> |
timeout(long timeout,
java.util.concurrent.TimeUnit unit,
io.reactivesocket.reactivestreams.extensions.Scheduler scheduler)
Provides a mapping function to wrap a
ReactiveSocket such that all requests will timeout, if not
completed after the specified timeout. |
public static java.util.function.Function<io.reactivesocket.ReactiveSocket,io.reactivesocket.ReactiveSocket> timeout(long timeout,
java.util.concurrent.TimeUnit unit,
io.reactivesocket.reactivestreams.extensions.Scheduler scheduler)
ReactiveSocket such that all requests will timeout, if not
completed after the specified timeout.timeout - timeout duration.unit - timeout duration unit.scheduler - scheduler for timeout.public static java.util.function.Function<io.reactivesocket.ReactiveSocket,io.reactivesocket.ReactiveSocket> safeClose()
ReactiveSocket such that a call to ReactiveSocket.close()
does not cancel all pending requests. Instead, it will wait for all pending requests to finish and then close
the socket.