Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net.cache
Class ReadWriteBackingMap.ReadThread

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.Daemon
          extended by com.tangosol.net.cache.ReadWriteBackingMap.ReadThread

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

public class ReadWriteBackingMap.ReadThread
extends Daemon

A thread that removes keys from a ReadWriteBackingMap.ReadQueue, reads the value for the key from the underlying CacheStore, and caches the value in the internal ReadWriteBackingMap cache.

Author:
jh 2005.02.08

Nested Class Summary

 

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

 

Field Summary
protected  boolean m_fRefreshContext
          Field used to tell the ReadWriteBackingMap.ReadThread to refresh its Guardian.GuardContext.

 

Constructor Summary
ReadWriteBackingMap.ReadThread()
          Default constructor.

 

Method Summary
 void run()
          The daemon's implementation method.
protected  void setGuardPolicy(Guardian guardian, long cTimeoutMillis, float flPctRecover)
          Set the Guardian and policy to guard this Daemon with.
 void terminate()
          Terminate this Guardable.

 

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, setGuardRegisterAction, setThreadContextClassLoader, shutdown, start, stop, toStateString, toString

 

Field Detail

m_fRefreshContext

protected volatile boolean m_fRefreshContext
Field used to tell the ReadWriteBackingMap.ReadThread to refresh its Guardian.GuardContext.

Constructor Detail

ReadWriteBackingMap.ReadThread

public ReadWriteBackingMap.ReadThread()
Default constructor.

Method Detail

run

public void run()
The daemon's implementation method.
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Daemon

terminate

public void terminate()
Terminate this Guardable.

This is the final action taken by the Guardian before the Guardable is removed from its responsibility list.

Specified by:
terminate in interface Guardable
Overrides:
terminate in class Daemon

setGuardPolicy

protected void setGuardPolicy(Guardian guardian,
                              long cTimeoutMillis,
                              float flPctRecover)
Set the Guardian and policy to guard this Daemon with. The Daemon is registered with the specified Guardian each time the Daemon is started, and is released each time the Daemon is stopped.
Overrides:
setGuardPolicy in class Daemon
Parameters:
guardian - the Guardian that will be guarding this Daemon
cTimeoutMillis - the timeout in ms for this Daemon, or 0 for the service guardian timeout
flPctRecover - the recovery percentage for this Daemon

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


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