public final class LocalServerTransport extends Object implements io.rsocket.transport.ServerTransport<io.rsocket.Closeable>
ServerTransport that connects to a ClientTransport in the
same JVM.| Modifier and Type | Method and Description |
|---|---|
LocalClientTransport |
clientTransport()
Returns a new
LocalClientTransport that is connected to this LocalServerTransport. |
static LocalServerTransport |
create(String name)
Creates an instance.
|
static LocalServerTransport |
createEphemeral()
Creates an instance with a random name.
|
static void |
dispose(String name)
Remove an instance from the JVM registry.
|
Mono<io.rsocket.Closeable> |
start(io.rsocket.transport.ServerTransport.ConnectionAcceptor acceptor) |
public static LocalServerTransport create(String name)
name - the name of this ServerTransport that clients will connect toNullPointerException - if name is nullpublic static LocalServerTransport createEphemeral()
public static void dispose(String name)
name - the local transport instance to freeNullPointerException - if name is nullpublic LocalClientTransport clientTransport()
LocalClientTransport that is connected to this LocalServerTransport.LocalClientTransport that is connected to this LocalServerTransportpublic Mono<io.rsocket.Closeable> start(io.rsocket.transport.ServerTransport.ConnectionAcceptor acceptor)
start in interface io.rsocket.transport.ServerTransport<io.rsocket.Closeable>