Class RefreshableAddressProvider.RefreshThread

java.lang.Object
com.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.net.RefreshableAddressProvider.RefreshThread
All Implemented Interfaces:
Guardable, Runnable
Enclosing class:
RefreshableAddressProvider

protected class RefreshableAddressProvider.RefreshThread extends Daemon
  • Field Details

    • f_lRefresh

      protected final long f_lRefresh
      The interval with which to attempt to refresh the address list.
  • Constructor Details

    • RefreshThread

      protected RefreshThread(long lRefresh)
      Construct a new RefreshThread with the specified refresh interval.
      Parameters:
      lRefresh - the refresh interval
  • Method Details

    • run

      public void run()
      The daemon's implementation method. Override this method to implement a daemon.

      An example implementation is:

      
         while (!isStopping())
             {
             // do some processing
             // ...
      
             synchronized (this)
                 {
                 // wait for notification of more work
                 wait();
                 }
             }
       
      Specified by:
      run in interface Runnable
      Specified by:
      run in class Daemon