| Modifier and Type | Field and Description |
|---|---|
protected Lock |
lock |
| 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() |
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, waitconfirmDelivery, 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 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 Exception
Exceptionprotected void notifyChannelListeners()