Class NettyFastMetaNet
java.lang.Object
io.aether.net.fastMeta.netty.NettyFastMetaNet
- All Implemented Interfaces:
io.aether.net.fastMeta.FastMetaNet, AutoCloseable
public class NettyFastMetaNet
extends Object
implements io.aether.net.fastMeta.FastMetaNet, AutoCloseable
Netty-based implementation of the FastMetaNet factory.
-
Field Summary
Fields inherited from interface io.aether.net.fastMeta.FastMetaNet
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()io.netty.channel.EventLoopGroupClass<? extends io.netty.channel.Channel> Class<? extends io.netty.channel.ServerChannel> io.netty.channel.EventLoopGroup<LT, RT extends io.aether.net.fastMeta.RemoteApi>
RTmakeClient(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteApiMeta, LT localApi) <LT> io.aether.net.fastMeta.MetaContextmakeClient(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) <LT> io.aether.net.fastMeta.MetaContextmakeClient(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, LT localApi) <LT> io.aether.net.fastMeta.FastMetaServer<LT> makeServer(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> contextConfigurator) <LT> io.aether.net.fastMeta.FastMetaServer<LT> makeServer(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory, Supplier<io.aether.net.fastMeta.MetaContext> contextFactory) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.aether.net.fastMeta.FastMetaNet
makeBroadcastClient, makeClient
-
Constructor Details
-
NettyFastMetaNet
public NettyFastMetaNet()
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getServerChannelClass
-
getClientChannelClass
-
getWorkerGroup
public io.netty.channel.EventLoopGroup getWorkerGroup() -
getBossGroup
public io.netty.channel.EventLoopGroup getBossGroup() -
makeClient
public <LT, RT extends io.aether.net.fastMeta.RemoteApi> RT makeClient(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteApiMeta, LT localApi) -
makeClient
public <LT> io.aether.net.fastMeta.MetaContext makeClient(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, LT localApi) -
makeServer
-
makeClient
public <LT> io.aether.net.fastMeta.MetaContext makeClient(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> localApiFactory) - Specified by:
makeClientin interfaceio.aether.net.fastMeta.FastMetaNet
-
makeServer
public <LT> io.aether.net.fastMeta.FastMetaServer<LT> makeServer(URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.utils.interfaces.AFunction<io.aether.net.fastMeta.MetaContext, LT> contextConfigurator) - Specified by:
makeServerin interfaceio.aether.net.fastMeta.FastMetaNet