public interface ChannelRegistry
Channel. Implementation of this class must be thread-safe| Modifier and Type | Method and Description |
|---|---|
Set<InetSocketAddress> |
getAddresses()
A unique set of registered
InetSocketAddress |
Set<io.netty.channel.Channel> |
getChannels(InetSocketAddress address)
The
Channel's acquired for the specified InetSocketAddress |
int |
getCount(InetSocketAddress address)
The number of
Channel registered for the specified InetSocketAddress |
Set<Map.Entry<InetSocketAddress,io.netty.channel.Channel>> |
getEntries()
getEntries.
|
boolean |
isRegistered(io.netty.channel.Channel channel)
Check if
Channel is registered by this instance. |
void |
register(io.netty.channel.Channel channel)
Register a newly acquired
Channel. |
boolean |
unregister(io.netty.channel.Channel channel)
Unregister a
Channel. |
void register(io.netty.channel.Channel channel)
throws ChannelRegistrationException
Channel. This method is thread-safe.channel - The Channel to be registeredChannelRegistrationException - If the registration failsboolean unregister(io.netty.channel.Channel channel)
Channel. This method is thread-safe.channel - The Channel to be unregisteredtrue if the Channel was successfuly unregistred.boolean isRegistered(io.netty.channel.Channel channel)
Channel is registered by this instance.channel - The Channel to check.true if the Channel is registered by this instance.Set<Map.Entry<InetSocketAddress,io.netty.channel.Channel>> getEntries()
getEntries.
Set objectSet<InetSocketAddress> getAddresses()
A unique set of registered InetSocketAddress
Set objectSet<io.netty.channel.Channel> getChannels(InetSocketAddress address)
The Channel's acquired for the specified InetSocketAddress
address - The InetSocketAddress to be used for the lookupSet of Channel instances acquired for the addressint getCount(InetSocketAddress address)
Channel registered for the specified InetSocketAddressaddress - The InetSocketAddress to lookupChannel for the specified addressCopyright © 2016–2024. All rights reserved.