Class FastMetaClientNIO<LT,​RT extends io.aether.net.fastMeta.RemoteApi>

  • 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.
    • 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.AFuture destroy​(boolean force)  
      • Methods inherited from class java.lang.Object

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

      • FastMetaClientNIO

        public FastMetaClientNIO()
    • 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)
        Specified by:
        connect in interface io.aether.net.fastMeta.FastMetaClient<LT,​RT extends io.aether.net.fastMeta.RemoteApi>
      • destroy

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