public class NullNotificationService extends AbstractNotificationService
| 构造器和说明 |
|---|
NullNotificationService(String appId,
String namespace) |
| 限定符和类型 | 方法和说明 |
|---|---|
CustomNotification |
buildCustomNotification(String content) |
ExecutorShutdownNotification |
buildExecutorShutdownNotification(String poolName,
long completedTaskCount,
long executingTaskCount,
long toExecuteTaskCount) |
ExecutorTaskNotification |
buildExecutorTaskNotification(String taskName,
String poolName,
long executionTime) |
ExecutorTickerNotification |
buildExecutorTickerNotification(JediThreadPoolExecutor executor) |
void |
pushNotification(AbstractNotification notification) |
void |
send(Object request,
MessageType messageType) |
public void pushNotification(AbstractNotification notification)
public void send(Object request, MessageType messageType)
send 在类中 AbstractNotificationServicepublic ExecutorTickerNotification buildExecutorTickerNotification(JediThreadPoolExecutor executor)
public ExecutorTaskNotification buildExecutorTaskNotification(String taskName, String poolName, long executionTime)
public ExecutorShutdownNotification buildExecutorShutdownNotification(String poolName, long completedTaskCount, long executingTaskCount, long toExecuteTaskCount)
public CustomNotification buildCustomNotification(String content)
Copyright © 2021 hellothomas. All rights reserved.