APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.nio.ch

pack-priv Class MembershipRegistry

extends Object
Class Inheritance
Imports
java.net.InetAddress, .NetworkInterface, java.nio.channels.MembershipKey, java.util.HashMap, .Iterator, .ArrayList, .List, .Map

Simple registry of membership keys for a MulticastChannel. Instances of this object are not safe by multiple concurrent threads.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface

Field Summary

Modifier and TypeField and Description
private Map<InetAddress, List<MembershipKeyImpl>>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
add(MembershipKeyImpl key)

Add membership to the registry, returning a new membership key.

pack-priv MembershipKey
checkMembership(InetAddress group, NetworkInterface interf, InetAddress source)

Checks registry for membership of the group on the given network interface.

pack-priv <X extends Throwable> void
forEach(MembershipRegistry.ThrowingConsumer<MembershipKeyImpl, X> action)

Invoke an action for each key in the registry

pack-priv void
invalidateAll()

Invalidate all keys in the registry

pack-priv void
remove(MembershipKeyImpl key)

Remove a key from the registry

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

groupsback to summary
private Map<InetAddress, List<MembershipKeyImpl>> groups

Constructor Detail

MembershipRegistryback to summary
pack-priv MembershipRegistry()

Method Detail

addback to summary
pack-priv void add(MembershipKeyImpl key)

Add membership to the registry, returning a new membership key.

checkMembershipback to summary
pack-priv MembershipKey checkMembership(InetAddress group, NetworkInterface interf, InetAddress source)

Checks registry for membership of the group on the given network interface.

forEachback to summary
pack-priv <X extends Throwable> void forEach(MembershipRegistry.ThrowingConsumer<MembershipKeyImpl, X> action) throws ThrowingConsumer-:X

Invoke an action for each key in the registry

invalidateAllback to summary
pack-priv void invalidateAll()

Invalidate all keys in the registry

removeback to summary
pack-priv void remove(MembershipKeyImpl key)

Remove a key from the registry

sun.nio.ch back to summary

pack-priv Interface MembershipRegistry.ThrowingConsumer<T, X extends Throwable>

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void
accept(T action)

Method Detail

acceptback to summary
public void accept(T action) throws ThrowingConsumer:X