Class AbstractOutbound
- java.lang.Object
-
- com.tarsolution.notifyman.shared.plugin.outbound.AbstractOutbound
-
public abstract class AbstractOutbound extends Object
- Author:
- FMARSLAN
-
-
Constructor Summary
Constructors Constructor Description AbstractOutbound()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StatusEnum
checkStatus(Map<String,Object> config)
The method run as a periodical by a times, in this method, you should check your plugin statusabstract void
destroy()
The method is run when the application is closed, in this method you can do all your destructions process.abstract PluginInfo
getInfo()
StatusEnum
getStatus()
String
getUUID()
abstract void
initialize(Map<String,Object> config)
The method run when the application is starting in this method you can do all your initialize process.abstract void
register()
The method is run when the plugin installed, in this method you can do all your register process.void
register_config(Consumer<Map<String,Object>> configListener)
abstract Response
send(Message message)
The method run your outbound process for sending a messagevoid
setConfig(Map<String,Object> config)
abstract void
unregister()
The method is run when the plugin uninstalled, in this method you can do all your unregister process.
-
-
-
Method Detail
-
getInfo
public abstract PluginInfo getInfo()
-
send
public abstract Response send(Message message)
The method run your outbound process for sending a message- Parameters:
message
- is the message to be sent- Returns:
- type of
Response
-
checkStatus
public abstract StatusEnum checkStatus(Map<String,Object> config)
The method run as a periodical by a times, in this method, you should check your plugin status- Parameters:
config
- includes the plugin configurations, the config parameter a key-value list- Returns:
- type of StatusEnum
-
initialize
public abstract void initialize(Map<String,Object> config)
The method run when the application is starting in this method you can do all your initialize process.- Parameters:
config
- includes the plugin configurations, the config parameter a key-value list
-
destroy
public abstract void destroy()
The method is run when the application is closed, in this method you can do all your destructions process.
-
register
public abstract void register()
The method is run when the plugin installed, in this method you can do all your register process.
-
unregister
public abstract void unregister()
The method is run when the plugin uninstalled, in this method you can do all your unregister process.
-
getStatus
public StatusEnum getStatus()
-
getUUID
public final String getUUID()
-
-