Class AutoReconnectController

java.lang.Object
org.openscada.opc.lib.da.AutoReconnectController
All Implemented Interfaces:
ServerConnectionStateListener

public class AutoReconnectController extends Object implements ServerConnectionStateListener
  • Constructor Details

    • AutoReconnectController

      public AutoReconnectController(Server server)
    • AutoReconnectController

      public AutoReconnectController(Server server, int delay)
  • Method Details

    • addListener

      public void addListener(AutoReconnectListener listener)
    • removeListener

      public void removeListener(AutoReconnectListener listener)
    • notifyStateChange

      protected void notifyStateChange(AutoReconnectState state)
    • getDelay

      public int getDelay()
    • setDelay

      public void setDelay(int delay)
      Set the reconnect delay. If the delay less than or equal to zero it will be the default delay time.
      Parameters:
      delay - The delay to use
    • connect

      public void connect()
    • disconnect

      public void disconnect()
    • isRequested

      public boolean isRequested()
    • connectionStateChanged

      public void connectionStateChanged(boolean connected)
      Specified by:
      connectionStateChanged in interface ServerConnectionStateListener