com.liferay.portal.kernel.notifications
Class BaseChannelImpl
java.lang.Object
com.liferay.portal.kernel.notifications.BaseChannelImpl
- All Implemented Interfaces:
- Channel
- Direct Known Subclasses:
- ChannelImpl
public abstract class BaseChannelImpl
- extends Object
- implements Channel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.kernel.notifications.Channel |
clone, confirmDelivery, confirmDelivery, confirmDelivery, confirmDelivery, deleteUserNotificiationEvent, deleteUserNotificiationEvents, flush, flush, getNotificationEvents, init, removeTransientNotificationEvents, removeTransientNotificationEventsByUuid, sendNotificationEvent, sendNotificationEvents |
BaseChannelImpl
protected BaseChannelImpl(long companyId,
long usedId)
cleanUp
public void cleanUp()
throws ChannelException
- Specified by:
cleanUp
in interface Channel
- Throws:
ChannelException
close
public void close()
throws ChannelException
- Specified by:
close
in interface Channel
- Throws:
ChannelException
getCompanyId
public long getCompanyId()
getNotificationEvents
public List<NotificationEvent> getNotificationEvents()
throws ChannelException
- Specified by:
getNotificationEvents
in interface Channel
- Throws:
ChannelException
getUserId
public long getUserId()
- Specified by:
getUserId
in interface Channel
hasNotificationEvents
public boolean hasNotificationEvents()
registerChannelListener
public void registerChannelListener(ChannelListener channelListener)
- Specified by:
registerChannelListener
in interface Channel
setCleanUpInterval
public void setCleanUpInterval(long cleanUpInterval)
unregisterChannelListener
public void unregisterChannelListener(ChannelListener channelListener)
- Specified by:
unregisterChannelListener
in interface Channel
doCleanUp
protected abstract void doCleanUp()
throws Exception
- Throws:
Exception
notifyChannelListeners
protected void notifyChannelListeners()