public static class RSocketFactory.ServerRSocketFactory extends Object implements RSocketFactory.ServerTransportAcceptor
| Constructor and Description |
|---|
ServerRSocketFactory() |
ServerRSocketFactory(RSocketServer server) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransportpublic ServerRSocketFactory()
public ServerRSocketFactory(RSocketServer server)
@Deprecated public RSocketFactory.ServerRSocketFactory byteBufAllocator(ByteBufAllocator allocator)
ByteBufAllocator it is recommended to use the
following setup for Reactor Netty based transport:
TcpClient.create()
...
.bootstrap(bootstrap -> bootstrap.option(ChannelOption.ALLOCATOR, clientAllocator))
TcpServer.create()
...
.bootstrap(serverBootstrap -> serverBootstrap.childOption(ChannelOption.ALLOCATOR, serverAllocator))
Or in case of local transport, to use corresponding factory method LocalClientTransport.creat(String, ByteBufAllocator)allocator - instance of ByteBufAllocatorpublic RSocketFactory.ServerRSocketFactory addConnectionPlugin(DuplexConnectionInterceptor interceptor)
@Deprecated public RSocketFactory.ServerRSocketFactory addClientPlugin(RSocketInterceptor interceptor)
addRequesterPlugin(RSocketInterceptor) insteadpublic RSocketFactory.ServerRSocketFactory addRequesterPlugin(RSocketInterceptor interceptor)
@Deprecated public RSocketFactory.ServerRSocketFactory addServerPlugin(RSocketInterceptor interceptor)
addResponderPlugin(RSocketInterceptor) insteadpublic RSocketFactory.ServerRSocketFactory addResponderPlugin(RSocketInterceptor interceptor)
public RSocketFactory.ServerRSocketFactory addSocketAcceptorPlugin(SocketAcceptorInterceptor interceptor)
public RSocketFactory.ServerTransportAcceptor acceptor(SocketAcceptor acceptor)
public RSocketFactory.ServerRSocketFactory frameDecoder(PayloadDecoder payloadDecoder)
public RSocketFactory.ServerRSocketFactory fragment(int mtu)
public RSocketFactory.ServerRSocketFactory errorConsumer(Consumer<Throwable> errorConsumer)
public RSocketFactory.ServerRSocketFactory lease(Supplier<Leases<?>> supplier)
public RSocketFactory.ServerRSocketFactory lease()
@Deprecated public RSocketFactory.ServerRSocketFactory singleSubscriberRequester()
public RSocketFactory.ServerRSocketFactory resume()
public RSocketFactory.ServerRSocketFactory resumeStore(Function<? super ByteBuf,? extends ResumableFramesStore> storeFactory)
public RSocketFactory.ServerRSocketFactory resumeSessionDuration(Duration sessionDuration)
public RSocketFactory.ServerRSocketFactory resumeStreamTimeout(Duration streamTimeout)
public RSocketFactory.ServerRSocketFactory resumeCleanupOnKeepAlive()
public ServerTransport.ConnectionAcceptor toConnectionAcceptor()
toConnectionAcceptor in interface RSocketFactory.ServerTransportAcceptorpublic <T extends Closeable> RSocketFactory.Start<T> transport(Supplier<ServerTransport<T>> transport)
transport in interface RSocketFactory.ServerTransportAcceptor