Skip navigation links
com.tangosol.net
Class RefreshableAddressProvider.RefreshThread
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.Daemon
com.tangosol.net.RefreshableAddressProvider.RefreshThread
- All Implemented Interfaces:
- Guardable, java.lang.Runnable
- Enclosing class:
- RefreshableAddressProvider
-
protected class RefreshableAddressProvider.RefreshThread
- extends Daemon
Field Summary |
protected long |
f_lRefresh
The interval with which to attempt to refresh the address list. |
Method Summary |
void |
run()
The daemon's implementation method. |
Methods inherited from class com.tangosol.util.Daemon |
changeState, configureWorker, ensureThreadGroup, 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 |
f_lRefresh
protected final long f_lRefresh
- The interval with which to attempt to refresh the address list.
RefreshableAddressProvider.RefreshThread
protected RefreshableAddressProvider.RefreshThread(long lRefresh)
- Construct a new RefreshThread with the specified refresh interval.
- Parameters:
lRefresh
- the refresh interval
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
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.