Interface NotificationContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> NotificationContextappend(ArgumentLiteral<T> argument, Object value)Append the argument literal.voidclear()Clear all of filter optionalNotificationContextclone()Creates and returns a copy of this object If class extends NotificationContextImpl and implements method clone(), then must use supper.clone();ChannelManagergetChannelManager()Gets the channel manager what contains all channel on NotificationExceptiongetException()Gets the exception if have any when the done processing<T> TgetException(Class<T> type)Gets the exception if have any when the done processingNotificationExecutorgetNotificationExecutor()Gets the NotificationExceutor serviceNotificationInfogetNotificationInfo()Gets notification informationList<NotificationInfo>getNotificationInfos()Gets notification message listPluginContainergetPluginContainer()Gets the plugin container what contains all plugins on NotificationPluginSettingServicegetPluginSettingService()Gets the PluginSettingService servicebooleanisFailed()The signal lets you know the processing is successfully or notbooleanisWritingProcess()Determines the writing processing or NOTNotificationCommandmakeCommand(PluginKey key)Makes the NotificationCommand by the NotificationKey<T> NotificationContextremove(ArgumentLiteral<T> filter)Removes the query parameter.voidsetException(Throwable t)Sets the exception if have any when the done processingNotificationContextsetNotificationInfo(NotificationInfo notification)Sets notification infomationvoidsetNotificationInfos(List<NotificationInfo> notifications)Sets notification information listvoidsetWritingProcess(boolean writingStatus)Sets the writing status to the context<T> Tvalue(ArgumentLiteral<T> argument)Gets FilterOption which was existing.
-
-
-
Method Detail
-
isWritingProcess
boolean isWritingProcess()
Determines the writing processing or NOT- Returns:
-
setWritingProcess
void setWritingProcess(boolean writingStatus)
Sets the writing status to the context- Parameters:
writingStatus-
-
append
<T> NotificationContext append(ArgumentLiteral<T> argument, Object value)
Append the argument literal.- Parameters:
argument-value-- Returns:
-
remove
<T> NotificationContext remove(ArgumentLiteral<T> filter)
Removes the query parameter.- Parameters:
filter-- Returns:
-
clear
void clear()
Clear all of filter optional
-
value
<T> T value(ArgumentLiteral<T> argument)
Gets FilterOption which was existing.- Parameters:
argument-- Returns:
-
getNotificationInfo
NotificationInfo getNotificationInfo()
Gets notification information- Returns:
-
setNotificationInfo
NotificationContext setNotificationInfo(NotificationInfo notification)
Sets notification infomation- Parameters:
notification-
-
setNotificationInfos
void setNotificationInfos(List<NotificationInfo> notifications)
Sets notification information list- Parameters:
notifications-
-
getNotificationInfos
List<NotificationInfo> getNotificationInfos()
Gets notification message list- Returns:
-
getException
Exception getException()
Gets the exception if have any when the done processing- Returns:
-
getException
<T> T getException(Class<T> type)
Gets the exception if have any when the done processing- Parameters:
type-- Returns:
-
setException
void setException(Throwable t)
Sets the exception if have any when the done processing- Parameters:
t-
-
isFailed
boolean isFailed()
The signal lets you know the processing is successfully or not- Returns:
-
getNotificationExecutor
NotificationExecutor getNotificationExecutor()
Gets the NotificationExceutor service- Returns:
-
makeCommand
NotificationCommand makeCommand(PluginKey key)
Makes the NotificationCommand by the NotificationKey- Parameters:
key-- Returns:
-
clone
NotificationContext clone()
Creates and returns a copy of this object If class extends NotificationContextImpl and implements method clone(), then must use supper.clone();- See Also:
Object.clone()
-
getPluginSettingService
PluginSettingService getPluginSettingService()
Gets the PluginSettingService service- Returns:
-
getPluginContainer
PluginContainer getPluginContainer()
Gets the plugin container what contains all plugins on Notification- Returns:
-
getChannelManager
ChannelManager getChannelManager()
Gets the channel manager what contains all channel on Notification- Returns:
-
-