Class VirtualFastMetaServer<LT>

java.lang.Object
io.aether.net.virtual.VirtualFastMetaServer<LT>
All Implemented Interfaces:
io.aether.net.fastMeta.FastMetaServer<LT>, io.aether.utils.interfaces.Destroyable

public class VirtualFastMetaServer<LT> extends Object implements io.aether.net.fastMeta.FastMetaServer<LT>
FastMetaServer implementation using virtual threads and plain sockets.

localApi is stateless — a single shared instance that accesses the current transport context via MetaContext.CURRENT_CONTEXT. RemoteApi is created on-demand via MetaContext.makeRemote().

  • Constructor Summary

    Constructors
    Constructor
    Description
    VirtualFastMetaServer(URI uri, io.aether.net.fastMeta.FastMetaApi<LT,?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> contextConfigurator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.aether.net.fastMeta.MetaContext
    createContext(io.aether.net.virtual.SocketTransport transport, String clientIp, int clientPort)
     
    io.aether.utils.futures.AFuture
    destroy(boolean force)
     
    Iterable<io.aether.net.fastMeta.MetaContext>
     
    io.aether.utils.futures.AFuture
     
    io.aether.utils.futures.AFuture
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VirtualFastMetaServer

      public VirtualFastMetaServer(URI uri, io.aether.net.fastMeta.FastMetaApi<LT,?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> contextConfigurator)
  • Method Details

    • createContext

      protected io.aether.net.fastMeta.MetaContext createContext(io.aether.net.virtual.SocketTransport transport, String clientIp, int clientPort)
    • ready

      public io.aether.utils.futures.AFuture ready()
      Specified by:
      ready in interface io.aether.net.fastMeta.FastMetaServer<LT>
    • stop

      public io.aether.utils.futures.AFuture stop()
      Specified by:
      stop in interface io.aether.net.fastMeta.FastMetaServer<LT>
    • destroy

      public io.aether.utils.futures.AFuture destroy(boolean force)
      Specified by:
      destroy in interface io.aether.utils.interfaces.Destroyable
    • handlers

      public Iterable<io.aether.net.fastMeta.MetaContext> handlers()
      Specified by:
      handlers in interface io.aether.net.fastMeta.FastMetaServer<LT>