public class DefaultChannelManager extends Object implements systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManager
| Constructor and Description |
|---|
DefaultChannelManager() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel |
createChannel(@NotNull io.netty.channel.Channel channel) |
@NotNull Optional<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> |
getChannel(@NotNull String name) |
@NotNull Optional<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> |
getFirstChannel() |
@NotNull @UnmodifiableView Collection<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> |
getNetworkChannels(@NotNull String remoteAddress) |
@NotNull @UnmodifiableView Collection<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> |
getRegisteredChannels() |
void |
registerChannel(@NotNull systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel channel) |
void |
unregisterChannel(@NotNull String name) |
@NotNull public @NotNull Optional<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> getChannel(@NotNull @NotNull String name)
getChannel in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManager@NotNull public @NotNull @UnmodifiableView Collection<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> getNetworkChannels(@NotNull @NotNull String remoteAddress)
getNetworkChannels in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManager@NotNull public @NotNull Optional<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> getFirstChannel()
getFirstChannel in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManager@NotNull public @NotNull @UnmodifiableView Collection<systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel> getRegisteredChannels()
getRegisteredChannels in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManager@NotNull
public @NotNull systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel createChannel(@NotNull
@NotNull io.netty.channel.Channel channel)
createChannel in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManagerpublic void registerChannel(@NotNull
@NotNull systems.reformcloud.reformcloud2.executor.api.network.channel.NetworkChannel channel)
registerChannel in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManagerpublic void unregisterChannel(@NotNull
@NotNull String name)
unregisterChannel in interface systems.reformcloud.reformcloud2.executor.api.network.channel.manager.ChannelManagerCopyright © 2020. All rights reserved.