Package io.aether.net.fastMeta
Interface FastMetaNet
-
public interface FastMetaNet
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFastMetaNet.Connection<LT,RT extends RemoteApi>Абстракция сетевого соединения для управления операциями ввода/вывода.static interfaceFastMetaNet.WritableConsumer
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.atomic.AtomicReference<FastMetaNet>INSTANCE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <LT,RT extends RemoteApi>
FastMetaClient<LT,RT>makeClient(java.net.URI uri, FastMetaApi<LT,?> lt, FastMetaApi<?,RT> rt, io.aether.utils.interfaces.AFunction<RT,LT> localApi, FastMetaNet.WritableConsumer writableConsumer)<LT,RT extends RemoteApi>
FastMetaServer<LT,RT>makeServer(java.net.URI uri, FastMetaApi<LT,?> localApiMeta, FastMetaApi<?,RT> remoteApiMeta, FastMetaServer.Handler<LT,RT> handler)Запускает сервер.
-
-
-
Field Detail
-
INSTANCE
static final java.util.concurrent.atomic.AtomicReference<FastMetaNet> INSTANCE
-
-
Method Detail
-
makeClient
<LT,RT extends RemoteApi> FastMetaClient<LT,RT> makeClient(java.net.URI uri, FastMetaApi<LT,?> lt, FastMetaApi<?,RT> rt, io.aether.utils.interfaces.AFunction<RT,LT> localApi, FastMetaNet.WritableConsumer writableConsumer)
-
makeServer
<LT,RT extends RemoteApi> FastMetaServer<LT,RT> makeServer(java.net.URI uri, FastMetaApi<LT,?> localApiMeta, FastMetaApi<?,RT> remoteApiMeta, FastMetaServer.Handler<LT,RT> handler)
Запускает сервер.- Parameters:
uri- URI, определяющий протокол и адрес.localApiMeta- FastMetaApi для десериализации вызовов LT (например, GlobalRegServerApi.META).remoteApiMeta- FastMetaApi для сериализации вызовов RT (например, GlobalRegClientApi.META).handler- Обработчик новых соединений и их событий.- Returns:
- AFuture, который завершится, когда сервер успешно запустится.
-
-