Package org.aoju.bus.socket.plugins
Class ReconnectPlugin
java.lang.Object
org.aoju.bus.socket.plugins.AbstractPlugin
org.aoju.bus.socket.plugins.ReconnectPlugin
- All Implemented Interfaces:
NetMonitor,Plugin
断链重连插件
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionReconnectPlugin(AioQuickClient client) ReconnectPlugin(AioQuickClient client, AsynchronousChannelGroup asynchronousChannelGroup) -
Method Summary
Modifier and TypeMethodDescriptionvoidshutdown()voidstateEvent(SocketStatus socketStatus, AioSession session, Throwable throwable) 监听状态机事件Methods inherited from class org.aoju.bus.socket.plugins.AbstractPlugin
afterRead, afterWrite, beforeRead, beforeWrite, preProcess, shouldAccept
-
Constructor Details
-
ReconnectPlugin
-
ReconnectPlugin
-
-
Method Details
-
stateEvent
Description copied from interface:Plugin监听状态机事件- Specified by:
stateEventin interfacePlugin- Overrides:
stateEventin classAbstractPlugin- Parameters:
socketStatus- 状态session- 会话throwable- 线程- See Also:
-
shutdown
public void shutdown()
-