Uses of Interface
eu.cloudnetservice.driver.network.NetworkChannel
Packages that use NetworkChannel
Package
Description
-
Uses of NetworkChannel in eu.cloudnetservice.driver.event.events.channel
Constructors in eu.cloudnetservice.driver.event.events.channel with parameters of type NetworkChannelModifierConstructorDescriptionChannelMessageReceiveEvent(@NonNull ChannelMessage message, @NonNull NetworkChannel networkChannel, boolean query) Constructs a new instance of a channel message receive event. -
Uses of NetworkChannel in eu.cloudnetservice.driver.event.events.network
Fields in eu.cloudnetservice.driver.event.events.network declared as NetworkChannelMethods in eu.cloudnetservice.driver.event.events.network that return NetworkChannelModifier and TypeMethodDescriptionNetworkEvent.networkChannel()Get the channel which is associated with this event.Constructors in eu.cloudnetservice.driver.event.events.network with parameters of type NetworkChannelModifierConstructorDescriptionNetworkChannelCloseEvent(@NonNull NetworkChannel channel, @NonNull ChannelType channelType) Creates a new instance of this network event.NetworkChannelInitEvent(@NonNull NetworkChannel channel, @NonNull ChannelType channelType) Creates a new instance of this network event.NetworkEvent(@NonNull NetworkChannel channel) Creates a new instance of this network event. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network
Classes in eu.cloudnetservice.driver.network that implement NetworkChannelModifier and TypeClassDescriptionclassThe default abstract implementation of a network channel.Methods in eu.cloudnetservice.driver.network that return NetworkChannelModifier and TypeMethodDescriptiondefault @UnknownNullability NetworkChannelNetworkComponent.firstChannel()Get the first channel which is known to this component or null if no channel is present.Methods in eu.cloudnetservice.driver.network that return types with arguments of type NetworkChannelModifier and TypeMethodDescriptionNetworkComponent.channels()Get an immutable collection of all channels which are associated with this component.Methods in eu.cloudnetservice.driver.network with parameters of type NetworkChannelModifier and TypeMethodDescriptionvoidNetworkChannelHandler.handleChannelClose(@NonNull NetworkChannel channel) Handles the inactivation processing of a channel, at this point the channel was closed either by a local handler or the remote directly.voidNetworkChannelHandler.handleChannelInitialize(@NonNull NetworkChannel channel) Handles the initialization of the channel, called the first time when a channel becomes active.booleanNetworkChannelHandler.handlePacketReceive(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the receive of a packet on the channel this handler is bound to. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.chunk
Methods in eu.cloudnetservice.driver.network.chunk with parameters of type NetworkChannelModifier and TypeMethodDescriptionChunkedPacketSender.Builder.toChannels(NetworkChannel @NonNull ... channels) Sends each chunk data packet to all the provided channels.Method parameters in eu.cloudnetservice.driver.network.chunk with type arguments of type NetworkChannelModifier and TypeMethodDescriptionChunkedPacketSender.Builder.toChannels(@NonNull Collection<NetworkChannel> channels) Sends each chunk data packet to all the provided channels. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.chunk.defaults.builder
Methods in eu.cloudnetservice.driver.network.chunk.defaults.builder with parameters of type NetworkChannelModifier and TypeMethodDescriptionDefaultChunkedPacketSenderBuilder.toChannels(NetworkChannel @NonNull ... channels) Sends each chunk data packet to all the provided channels.Method parameters in eu.cloudnetservice.driver.network.chunk.defaults.builder with type arguments of type NetworkChannelModifier and TypeMethodDescriptionDefaultChunkedPacketSenderBuilder.toChannels(@NonNull Collection<NetworkChannel> channels) Sends each chunk data packet to all the provided channels. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.chunk.defaults.splitter
Fields in eu.cloudnetservice.driver.network.chunk.defaults.splitter with type parameters of type NetworkChannelModifier and TypeFieldDescriptionprivate final @NonNull Collection<NetworkChannel> NetworkChannelsPacketSplitter.channelsThe field for thechannelsrecord component.Methods in eu.cloudnetservice.driver.network.chunk.defaults.splitter that return types with arguments of type NetworkChannelModifier and TypeMethodDescriptionNetworkChannelsPacketSplitter.channels()Returns the value of thechannelsrecord component.Constructor parameters in eu.cloudnetservice.driver.network.chunk.defaults.splitter with type arguments of type NetworkChannelModifierConstructorDescriptionCreates an instance of aNetworkChannelsPacketSplitterrecord class. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.chunk.network
Methods in eu.cloudnetservice.driver.network.chunk.network with parameters of type NetworkChannelModifier and TypeMethodDescriptionvoidChunkedPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.netty
Classes in eu.cloudnetservice.driver.network.netty that implement NetworkChannelModifier and TypeClassDescriptionfinal classThe default netty based implementation of a network channel.Methods in eu.cloudnetservice.driver.network.netty that return types with arguments of type NetworkChannelModifier and TypeMethodDescriptionprotected abstract @NonNull Collection<NetworkChannel> NettyNetworkHandler.channels()Get all channels which are connected to the underlying network component. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.netty.client
Fields in eu.cloudnetservice.driver.network.netty.client with type parameters of type NetworkChannelModifier and TypeFieldDescriptionprotected final Collection<NetworkChannel> NettyNetworkClient.channelsMethods in eu.cloudnetservice.driver.network.netty.client that return types with arguments of type NetworkChannelModifier and TypeMethodDescriptionNettyNetworkClient.channels()Get an immutable collection of all channels which are associated with this component.protected @NonNull Collection<NetworkChannel> NettyNetworkClientHandler.channels()Get all channels which are connected to the underlying network component. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.netty.server
Fields in eu.cloudnetservice.driver.network.netty.server with type parameters of type NetworkChannelModifier and TypeFieldDescriptionprotected final Collection<NetworkChannel> NettyNetworkServer.channelsMethods in eu.cloudnetservice.driver.network.netty.server that return types with arguments of type NetworkChannelModifier and TypeMethodDescriptionNettyNetworkServer.channels()Get an immutable collection of all channels which are associated with this component.protected @NonNull Collection<NetworkChannel> NettyNetworkServerHandler.channels()Get all channels which are connected to the underlying network component. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.protocol
Methods in eu.cloudnetservice.driver.network.protocol that return NetworkChannelModifier and TypeMethodDescriptionQueryPacketManager.networkChannel()Get the network channel this manager is associated with.Methods in eu.cloudnetservice.driver.network.protocol with parameters of type NetworkChannelModifier and TypeMethodDescriptionvoidPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet.booleanPacketListenerRegistry.handlePacket(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles an incoming packets and post this to all listeners which are registered to the channel the packet was sent to. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.protocol.defaults
Fields in eu.cloudnetservice.driver.network.protocol.defaults declared as NetworkChannelModifier and TypeFieldDescriptionprotected final NetworkChannelDefaultQueryPacketManager.networkChannelMethods in eu.cloudnetservice.driver.network.protocol.defaults that return NetworkChannelModifier and TypeMethodDescriptionDefaultQueryPacketManager.networkChannel()Get the network channel this manager is associated with.Methods in eu.cloudnetservice.driver.network.protocol.defaults with parameters of type NetworkChannelModifier and TypeMethodDescriptionbooleanDefaultPacketListenerRegistry.handlePacket(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles an incoming packets and post this to all listeners which are registered to the channel the packet was sent to.Constructors in eu.cloudnetservice.driver.network.protocol.defaults with parameters of type NetworkChannelModifierConstructorDescriptionDefaultQueryPacketManager(@NonNull NetworkChannel networkChannel) Constructs a new query manager for the given network with the provided query timeout. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.rpc
Methods in eu.cloudnetservice.driver.network.rpc with parameters of type NetworkChannelModifier and TypeMethodDescription<T> @NonNull CompletableFuture<T> RPCExecutable.fire(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and returns a future which will be completed with the return value of the method execution when it's available or completed with a timeout exception when the query packet future times out.voidRPCExecutable.fireAndForget(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and doesn't wait for the result of the rpc to become available.<T> TRPCExecutable.fireSync(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and waits for the result to become available, or times out after 30 seconds.RPCSender.Builder.targetChannel(@NonNull NetworkChannel channel) Sets the singleton channel that will be used to send all RPCs that are using this sender to.Method parameters in eu.cloudnetservice.driver.network.rpc with type arguments of type NetworkChannelModifier and TypeMethodDescriptionRPCSender.Builder.targetChannel(@NonNull Supplier<NetworkChannel> channelSupplier) Sets the supplier to use to resolve the network channel to which RPCs using this sender should be sent. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.rpc.defaults.generation
Fields in eu.cloudnetservice.driver.network.rpc.defaults.generation with type parameters of type NetworkChannelModifier and TypeFieldDescriptionprivate Supplier<NetworkChannel> DefaultRPCImplementationBuilder.channelSupplierprivate final @NonNull Supplier<NetworkChannel> DefaultRPCImplementationBuilder.DefaultInstanceAllocator.channelSupplierThe field for thechannelSupplierrecord component.Methods in eu.cloudnetservice.driver.network.rpc.defaults.generation that return types with arguments of type NetworkChannelModifier and TypeMethodDescriptionDefaultRPCImplementationBuilder.DefaultInstanceAllocator.channelSupplier()Returns the value of thechannelSupplierrecord component.Methods in eu.cloudnetservice.driver.network.rpc.defaults.generation with parameters of type NetworkChannelModifier and TypeMethodDescriptionDefaultRPCImplementationBuilder.targetChannel(@NonNull NetworkChannel channel) Sets the singleton channel that will be used to send all RPCs to.Method parameters in eu.cloudnetservice.driver.network.rpc.defaults.generation with type arguments of type NetworkChannelModifier and TypeMethodDescriptionRPCInternalInstanceFactory.constructInstance(@Nullable ChainableRPC baseRPC, @Nullable RPCSender classRPCSender, @NonNull Supplier<NetworkChannel> channelSupplier, @NonNull Object[] additionalConstructorArgs) Constructs a new instance of the generated rpc class.RPCInternalInstanceFactory.constructInstance(@Nullable ChainableRPC baseRPC, @NonNull Supplier<NetworkChannel> channelSupplier, @NonNull Object[] additionalConstructorArgs) Constructs a new instance of the generated rpc class.RPCInternalInstanceFactory.TempRPCInternalInstanceFactory.constructInstance(@Nullable ChainableRPC baseRPC, @Nullable RPCSender classRPCSender, @NonNull Supplier<NetworkChannel> channelSupplier, @NonNull Object[] additionalConstructorArgs) Uses the delegate instance of this temp factory to construct the target rpc implementation class.RPCInternalInstanceFactory.TempRPCInternalInstanceFactory.constructInstance(@Nullable ChainableRPC baseRPC, @NonNull Supplier<NetworkChannel> channelSupplier, @NonNull Object[] additionalConstructorArgs) Uses the delegate instance of this temp factory to construct the target rpc implementation class.private voidRPCInternalInstanceFactory.replaceSpecialArgs(Object[] args, @Nullable ChainableRPC baseRPC, @NonNull Supplier<NetworkChannel> channelSupplier) Replaces all requests for special arguments in the given target array.DefaultRPCImplementationBuilder.targetChannel(@NonNull Supplier<NetworkChannel> channelSupplier) Sets the supplier to use to resolve the network channel to which RPCs should be sent.DefaultRPCImplementationBuilder.DefaultInstanceAllocator.withTargetChannel(@NonNull Supplier<NetworkChannel> channelSupplier) Returns a new instance allocator which uses the given channel supplier when constructing the underlying implementation.Constructor parameters in eu.cloudnetservice.driver.network.rpc.defaults.generation with type arguments of type NetworkChannelModifierConstructorDescriptionprivateDefaultInstanceAllocator(@Nullable ChainableRPC baseRPC, @NonNull RPCSender classRPCSender, @NonNull Supplier<NetworkChannel> channelSupplier, @NonNull Object[] additionalConstructorParameters, @NonNull RPCInternalInstanceFactory internalInstanceFactory) Creates an instance of aDefaultInstanceAllocatorrecord class. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.rpc.defaults.rpc
Fields in eu.cloudnetservice.driver.network.rpc.defaults.rpc with type parameters of type NetworkChannelModifier and TypeFieldDescriptionprivate final Supplier<NetworkChannel> DefaultRPC.channelSupplierprivate final Supplier<NetworkChannel> DefaultRPCChain.channelSupplierMethods in eu.cloudnetservice.driver.network.rpc.defaults.rpc with parameters of type NetworkChannelModifier and TypeMethodDescription<T> @NonNull CompletableFuture<T> DefaultRPC.fire(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and returns a future which will be completed with the return value of the method execution when it's available or completed with a timeout exception when the query packet future times out.<T> @NonNull CompletableFuture<T> DefaultRPCChain.fire(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and returns a future which will be completed with the return value of the method execution when it's available or completed with a timeout exception when the query packet future times out.voidDefaultRPC.fireAndForget(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and doesn't wait for the result of the rpc to become available.voidDefaultRPCChain.fireAndForget(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and doesn't wait for the result of the rpc to become available.<T> TDefaultRPC.fireSync(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and waits for the result to become available, or times out after 30 seconds.<T> TDefaultRPCChain.fireSync(@NonNull NetworkChannel component) Fires the current rpc into the given network channel and waits for the result to become available, or times out after 30 seconds.Method parameters in eu.cloudnetservice.driver.network.rpc.defaults.rpc with type arguments of type NetworkChannelModifier and TypeMethodDescriptionstatic @NonNull DefaultRPCChainDefaultRPCChain.of(@NonNull RPC root, @NonNull RPC next, @NonNull Supplier<NetworkChannel> channelSupplier) Constructs a new rpc chain using the given root and tail rpc.Constructor parameters in eu.cloudnetservice.driver.network.rpc.defaults.rpc with type arguments of type NetworkChannelModifierConstructorDescriptionDefaultRPC(@NonNull Class<?> targetClass, @NonNull RPCFactory sourceFactory, @NonNull ObjectMapper objectMapper, @NonNull DataBufFactory dataBufFactory, @NonNull RPCSender sender, @NonNull Supplier<NetworkChannel> channelSupplier, @Nullable Duration executionTimeout, @NonNull RPCMethodMetadata targetMethod, @NonNull Object[] arguments) Constructs a new default rpc instance.privateDefaultRPCChain(@NonNull RPC chainHead, @NonNull RPC chainTail, @NonNull List<RPC> fullChain, @NonNull Supplier<NetworkChannel> channelSupplier) Constructs a new rpc chain instance. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.rpc.defaults.sender
Fields in eu.cloudnetservice.driver.network.rpc.defaults.sender with type parameters of type NetworkChannelModifier and TypeFieldDescriptionprivate final Supplier<NetworkChannel> DefaultRPCSender.channelSupplierprivate Supplier<NetworkChannel> DefaultRPCSenderBuilder.channelSupplierMethods in eu.cloudnetservice.driver.network.rpc.defaults.sender with parameters of type NetworkChannelModifier and TypeMethodDescriptionDefaultRPCSenderBuilder.targetChannel(@NonNull NetworkChannel channel) Sets the singleton channel that will be used to send all RPCs that are using this sender to.Method parameters in eu.cloudnetservice.driver.network.rpc.defaults.sender with type arguments of type NetworkChannelModifier and TypeMethodDescriptionDefaultRPCSenderBuilder.targetChannel(@NonNull Supplier<NetworkChannel> channelSupplier) Sets the supplier to use to resolve the network channel to which RPCs using this sender should be sent.Constructor parameters in eu.cloudnetservice.driver.network.rpc.defaults.sender with type arguments of type NetworkChannelModifierConstructorDescriptionDefaultRPCSender(@NonNull Class<?> targetClass, @NonNull RPCFactory sourceFactory, @NonNull ObjectMapper objectMapper, @NonNull DataBufFactory dataBufFactory, @NonNull RPCClassMetadata rpcTargetMeta, @NonNull Supplier<NetworkChannel> channelSupplier) Constructs a new default rpc sender instance. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.rpc.factory
Methods in eu.cloudnetservice.driver.network.rpc.factory with parameters of type NetworkChannelModifier and TypeMethodDescriptionRPCImplementationBuilder.targetChannel(@NonNull NetworkChannel channel) Sets the singleton channel that will be used to send all RPCs to.Method parameters in eu.cloudnetservice.driver.network.rpc.factory with type arguments of type NetworkChannelModifier and TypeMethodDescriptionRPCImplementationBuilder.targetChannel(@NonNull Supplier<NetworkChannel> channelSupplier) Sets the supplier to use to resolve the network channel to which RPCs should be sent.RPCImplementationBuilder.InstanceAllocator.withTargetChannel(@NonNull Supplier<NetworkChannel> channelSupplier) Returns a new instance allocator which uses the given channel supplier when constructing the underlying implementation. -
Uses of NetworkChannel in eu.cloudnetservice.driver.network.rpc.listener
Methods in eu.cloudnetservice.driver.network.rpc.listener with parameters of type NetworkChannelModifier and TypeMethodDescriptionprivate voidRPCPacketListener.executeRPCChainStep(int chainDepth, int currentDepth, boolean resultExpected, @NonNull DataBuf content, @NonNull Packet request, @NonNull NetworkChannel channel, @Nullable Object previousMethodReturnValue) Executes the next RPC chain step of the current RPC chain.voidRPCPacketListener.handle(@NonNull NetworkChannel channel, @NonNull Packet packet) Handles the incoming packet.private voidRPCPacketListener.sendResponseData(@NonNull NetworkChannel channel, @NonNull Packet request, @NonNull DataBuf response) Sends a serialized response to given request packet into the given network channel.