Interface ReactiveServer

All Superinterfaces:
io.activej.reactor.NioReactive, io.activej.reactor.Reactive
All Known Implementing Classes:
AbstractReactiveServer, PrimaryServer, SimpleServer

public interface ReactiveServer extends io.activej.reactor.NioReactive
Represents non-blocking server which listens to new connections and accepts them asynchronously. It operates on reactor in reactor thread and uses reactor integration with Java NIO.
  • Method Summary

    Modifier and Type
    Method
    Description
    Closes the server.
    void
    Tells this server to start listening on its listen addresses.

    Methods inherited from interface io.activej.reactor.NioReactive

    getReactor
  • Method Details

    • listen

      void listen() throws IOException
      Tells this server to start listening on its listen addresses.
      Throws:
      IOException - if the socket can not be created.
    • close

      Promise<?> close()
      Closes the server. Any open channels will be closed.