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
ConstructorsConstructorDescriptionVirtualFastMetaServer(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 TypeMethodDescriptionprotected io.aether.net.fastMeta.MetaContextcreateContext(io.aether.net.virtual.SocketTransport transport, String clientIp, int clientPort) io.aether.utils.futures.AFuturedestroy(boolean force) Iterable<io.aether.net.fastMeta.MetaContext> handlers()io.aether.utils.futures.AFutureready()io.aether.utils.futures.AFuturestop()
-
Constructor Details
-
VirtualFastMetaServer
-
-
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:
readyin interfaceio.aether.net.fastMeta.FastMetaServer<LT>
-
stop
public io.aether.utils.futures.AFuture stop()- Specified by:
stopin interfaceio.aether.net.fastMeta.FastMetaServer<LT>
-
destroy
public io.aether.utils.futures.AFuture destroy(boolean force) - Specified by:
destroyin interfaceio.aether.utils.interfaces.Destroyable
-
handlers
-