Package io.aether.net.fastMeta.nio
Class FastMetaClientNIO<LT,RT extends io.aether.net.fastMeta.RemoteApi>
- java.lang.Object
-
- io.aether.net.fastMeta.nio.FastMetaClientNIO<LT,RT>
-
- Type Parameters:
LT- The Local API type (implemented by the client).RT- The Remote API type (exposed by the server).
- All Implemented Interfaces:
io.aether.net.fastMeta.FastMetaClient<LT,RT>,io.aether.utils.interfaces.Destroyable
public class FastMetaClientNIO<LT,RT extends io.aether.net.fastMeta.RemoteApi> extends java.lang.Object implements io.aether.net.fastMeta.FastMetaClient<LT,RT>NIO implementation of the FastMetaClient, handling connection initiation and automatic, scheduled reconnection attempts using RU.schedule. REWRITTEN FOR ROBUSTNESS: This implementation centralizes retry logic and does not trust the connection context to always report errors.
-
-
Constructor Summary
Constructors Constructor Description FastMetaClientNIO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.aether.utils.futures.ARFuture<FastApiContextClientNIO<LT,RT>>connect(java.net.URI uri, io.aether.net.fastMeta.FastMetaApi<LT,?> localApiMeta, io.aether.net.fastMeta.FastMetaApi<?,RT> remoteApiMeta, io.aether.utils.interfaces.AFunction<RT,LT> localApi)io.aether.utils.futures.AFuturedestroy(boolean force)
-
-
-
Method Detail
-
connect
public io.aether.utils.futures.ARFuture<FastApiContextClientNIO<LT,RT>> connect(java.net.URI uri, io.aether.net.fastMeta.FastMetaApi<LT,?> localApiMeta, io.aether.net.fastMeta.FastMetaApi<?,RT> remoteApiMeta, io.aether.utils.interfaces.AFunction<RT,LT> localApi)
-
destroy
public io.aether.utils.futures.AFuture destroy(boolean force)
- Specified by:
destroyin interfaceio.aether.utils.interfaces.Destroyable
-
-