com.alipay.remoting
Class DefaultConnectionMonitor

java.lang.Object
  extended by com.alipay.remoting.DefaultConnectionMonitor

public class DefaultConnectionMonitor
extends Object

A default connection monitor that handle connections with strategies


Constructor Summary
DefaultConnectionMonitor(ConnectionMonitorStrategy strategy, DefaultConnectionManager connectionManager)
           
 
Method Summary
 void destroy()
          cancel task and shutdown executor
 void start()
          Start schedule task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConnectionMonitor

public DefaultConnectionMonitor(ConnectionMonitorStrategy strategy,
                                DefaultConnectionManager connectionManager)
Method Detail

start

public void start()
Start schedule task


destroy

public void destroy()
cancel task and shutdown executor

Throws:
Exception


Copyright © 2018. All rights reserved.