Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.net
Class RefreshableAddressProvider.RefreshThread

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.Daemon
          extended by com.tangosol.net.RefreshableAddressProvider.RefreshThread

All Implemented Interfaces:
Guardable, java.lang.Runnable
Enclosing class:
RefreshableAddressProvider

protected class RefreshableAddressProvider.RefreshThread
extends Daemon

Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.util.Daemon
Daemon.DaemonWorker

 

Field Summary
protected  long m_lRefresh
          The interval with which to attempt to refresh the address list.

 

Constructor Summary
protected RefreshableAddressProvider.RefreshThread(long lRefresh)
          Construct a new RefreshThread with the specified refresh interval.

 

Method Summary
 void run()
          The daemon's implementation method.

 

Methods inherited from class com.tangosol.util.Daemon
changeState, configureWorker, finishStarting, finishStopping, getConfiguredName, getConfiguredPriority, getContext, getDescription, getGuardRegisterAction, getMaxWaitMillis, getState, getThread, getThreadContextClassLoader, getWorker, guardIfNeeded, heartbeat, heartbeat, instantiateWorker, isGuarded, isOnWorkerThread, isRunning, isStopping, recover, setConfiguredName, setConfiguredPriority, setContext, setGuardPolicy, setGuardRegisterAction, setThreadContextClassLoader, shutdown, start, stop, terminate, toStateString, toString

 

Field Detail

m_lRefresh

protected final long m_lRefresh
The interval with which to attempt to refresh the address list.

Constructor Detail

RefreshableAddressProvider.RefreshThread

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

Method Detail

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 java.lang.Runnable
Specified by:
run in class Daemon
See Also:
Thread.run()

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.