Interface Server

All Superinterfaces:
AutoCloseable, Closeable

public interface Server extends Closeable
Controls remote access into a database.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    acceptAll(ServerSocket ss, long... tokens)
    Call to enable remote access via all sockets accepted by the given ServerSocket.
    void
    Disables remote access, closes all acceptors, and closes all existing connections.
  • Method Details

    • acceptAll

      void acceptAll(ServerSocket ss, long... tokens) throws IOException
      Call to enable remote access via all sockets accepted by the given ServerSocket. At least one token must match in order for a connection to be accepted.
      Throws:
      IllegalArgumentException - if not given one or two tokens
      IOException
    • close

      void close()
      Disables remote access, closes all acceptors, and closes all existing connections.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable