| Modifier | Constructor and Description |
|---|---|
protected |
BaseChannelImpl(long companyId,
long usedId) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp() |
void |
close() |
protected abstract void |
doCleanUp() |
long |
getCompanyId() |
java.util.List<NotificationEvent> |
getNotificationEvents() |
long |
getUserId() |
boolean |
hasNotificationEvents() |
protected void |
notifyChannelListeners() |
void |
registerChannelListener(ChannelListener channelListener) |
void |
setCleanUpInterval(long cleanUpInterval) |
void |
unregisterChannelListener(ChannelListener channelListener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, confirmDelivery, confirmDelivery, confirmDelivery, confirmDelivery, deleteUserNotificiationEvent, deleteUserNotificiationEvents, flush, flush, getNotificationEvents, init, removeTransientNotificationEvents, removeTransientNotificationEventsByUuid, sendNotificationEvent, sendNotificationEvents, storeNotificationEventpublic void cleanUp()
throws ChannelException
cleanUp in interface ChannelChannelExceptionpublic void close()
throws ChannelException
close in interface ChannelChannelExceptionpublic long getCompanyId()
public java.util.List<NotificationEvent> getNotificationEvents() throws ChannelException
getNotificationEvents in interface ChannelChannelExceptionpublic boolean hasNotificationEvents()
public void registerChannelListener(ChannelListener channelListener)
registerChannelListener in interface Channelpublic void setCleanUpInterval(long cleanUpInterval)
public void unregisterChannelListener(ChannelListener channelListener)
unregisterChannelListener in interface Channelprotected abstract void doCleanUp()
throws java.lang.Exception
java.lang.Exceptionprotected void notifyChannelListeners()