public class ChannelRegistry extends Object
| Constructor and Description |
|---|
ChannelRegistry() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
CleanUp(ChannelRegistryKey RegistryKey)
Cleans up the entry of the provided registry key.
|
static ChannelRegistryKey |
Register(ChannelState State,
INozzleConfig Config,
String RegisteringNozzle)
Registers a channel and assigns it a referencable unique identifier.
|
static ChannelRegistryEntry |
Retrieve(ChannelRegistryKey Key)
Retrieves the associated to a registry key entry
|
public static ChannelRegistryKey Register(ChannelState State, INozzleConfig Config, String RegisteringNozzle)
IChannelProxy.SetChannelRegistryKey(ChannelRegistryKey)
is called so that now the inlet side of the channel has all the information needed
to complete its instantiation of inlet side proxy able to identify
fully the served channel. The cleanup module ChannelRegistryCleanUp
is registered with events produced by the registered ChannelState
so that it can cleanup the registry entries when the channel will be disposed.State - the state that represents the main synchronization pointConfig - the configuration of the created channelRegisteringNozzle - the inlet nozzlepublic static ChannelRegistryEntry Retrieve(ChannelRegistryKey Key)
Key - The registry key of which to retrieve the entryprotected static void CleanUp(ChannelRegistryKey RegistryKey)
ChannelRegistryCleanUp module from events by the ChannelState to
be cleaned up. Then calls ChannelRegistryEntry.Dispose() for the entry
that is stored for the provided registry keyRegistryKey - the registry keyCopyright © 2018. All Rights Reserved.