Interface ChannelManager
-
public interface ChannelManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractChannelgetChannel(ChannelKey key)Gets the channel by the specified keyList<AbstractChannel>getChannels()Gets list of the channelsAbstractNotificationLifecyclegetLifecycle(ChannelKey key)Gets the lifecycle by the ChannelKeyvoidregister(AbstractChannel channel)Register new channelvoidregisterOverrideTemplateProvider(TemplateProvider provider)Register and override the Template providervoidregisterTemplateProvider(TemplateProvider provider)Register the Template providerintsizeChannels()Gets size of channels has been registeredvoidunregister(AbstractChannel channel)Unregister the specified channel
-
-
-
Method Detail
-
register
void register(AbstractChannel channel)
Register new channel- Parameters:
channel-
-
unregister
void unregister(AbstractChannel channel)
Unregister the specified channel- Parameters:
channel-
-
registerTemplateProvider
void registerTemplateProvider(TemplateProvider provider)
Register the Template provider- Parameters:
provider-
-
registerOverrideTemplateProvider
void registerOverrideTemplateProvider(TemplateProvider provider)
Register and override the Template provider- Parameters:
provider-
-
getChannel
AbstractChannel getChannel(ChannelKey key)
Gets the channel by the specified key- Parameters:
key- the channel key- Returns:
-
getChannels
List<AbstractChannel> getChannels()
Gets list of the channels- Returns:
-
getLifecycle
AbstractNotificationLifecycle getLifecycle(ChannelKey key)
Gets the lifecycle by the ChannelKey- Parameters:
key-- Returns:
-
sizeChannels
int sizeChannels()
Gets size of channels has been registered- Returns:
-
-