public class ChannelRegistryEntry extends Object
ChannelState
that is registered with a specific ChannelRegistryKey for which this entry is stored,
along with the INozzleConfig that the ChannelInlet of the channel
connected its channel with. This entry also holds info on all the connected ChannelOutlet| Constructor and Description |
|---|
ChannelRegistryEntry(ChannelRegistryKey Key,
ChannelState State,
INozzleConfig Config,
String RegisteringNozzle)
Instantiates a new channel registry entry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Dispose()
Disposes the entry.
|
INozzleConfig |
GetConfig() |
String |
GetInletNozzleID()
Gets the inlet nozzle identifier
|
boolean |
GetIsBroadcast()
Gets whether the channel supports multiple outlets
|
IChannelProxy |
GetProxy()
Gets the proxy that acts on behalf of the channel for the inlet nozzle
|
List<RegisteredNozzle> |
GetRegisteredNozzles()
Gets the registered nozzles.
|
ChannelRegistryKey |
GetRegistryKey()
Gets the registry key.
|
int |
GetRestrictBroadcast()
Gets the number of outlet nozzles the channel supports
|
ChannelState |
GetState()
Gets the synchronization point of the channel
|
Boolean |
HasConnected()
Checks the number of outlet nozzles connected to the channel
|
boolean |
RegisterNozzle(RegisteredNozzle entry)
Registers a new outlet nozzle to the channel.
|
Boolean |
StillConnected()
Checks the outlet nozzles that have at some point connected to the channel and checks if
at least one of them is still connected.
|
public ChannelRegistryEntry(ChannelRegistryKey Key, ChannelState State, INozzleConfig Config, String RegisteringNozzle)
Key - the key with which the entry is associated withState - the synchronization point of the channelConfig - the configuration provided to the ChannelInletRegisteringNozzle - the inlet nozzle identifierpublic ChannelRegistryKey GetRegistryKey()
public String GetInletNozzleID()
public ChannelState GetState()
public IChannelProxy GetProxy()
public boolean GetIsBroadcast()
public INozzleConfig GetConfig()
public int GetRestrictBroadcast()
public boolean RegisterNozzle(RegisteredNozzle entry)
GetIsBroadcast() and
GetRestrictBroadcast()entry - the new outlet nozzle informationpublic Boolean HasConnected()
public Boolean StillConnected()
public List<RegisteredNozzle> GetRegisteredNozzles()
public void Dispose()
ChannelState.Dispose() method is called, and then the INozzleConfig.Dispose()
and for each connected nozzle, the RegisteredNozzle.Dispose()Copyright © 2018. All Rights Reserved.