com.day.cq.wcm.notification
Interface Channel

All Known Implementing Classes:
InboxChannel

public interface Channel

A Channel is used in the notification framework to publish an event. If an event occurs and if there is a subscription matching this event, the subscription is associated with a channel and the channel is invoked to publish this event.


Method Summary
 String getName()
          The unique name of the channel.
 String getType()
          The type of the channel.
 void publish(ChannelContext context, Subscription subscription, org.osgi.service.event.Event event)
          Publish the event through this channel.
 

Method Detail

publish

void publish(ChannelContext context,
             Subscription subscription,
             org.osgi.service.event.Event event)
             throws Exception
Publish the event through this channel.

Parameters:
context - The channel context.
subscription - The subscription that triggered this publish
event - The event that occured.
Throws:
Exception

getName

String getName()
The unique name of the channel.


getType

String getType()
The type of the channel.



Copyright © 2008 Day Management AG. All Rights Reserved.