alma::acs::concurrent::ThreadLoopRunnerTest::MyAction Class Reference

Collaboration diagram for alma::acs::concurrent::ThreadLoopRunnerTest::MyAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void run ()

Protected Member Functions

void sleep () throws InterruptedException

Protected Attributes

final int sleepMillis
final Logger logger

Package Functions

 MyAction (CountDownLatch sync, int sleepMillis, Logger logger)
void reset (CountDownLatch newSync)
int getCount ()

Private Attributes

volatile CountDownLatch sync
volatile int count

Detailed Description

Action that tracks the invocations of the run() method and allows clients to wait for a certain number of such invocations


Constructor & Destructor Documentation

alma::acs::concurrent::ThreadLoopRunnerTest::MyAction::MyAction ( CountDownLatch  sync,
int  sleepMillis,
Logger  logger 
) [inline, package]

References reset().


Member Function Documentation

int alma::acs::concurrent::ThreadLoopRunnerTest::MyAction::getCount (  )  [inline, package]
void alma::acs::concurrent::ThreadLoopRunnerTest::MyAction::reset ( CountDownLatch  newSync  )  [inline, package]
void alma::acs::concurrent::ThreadLoopRunnerTest::MyAction::run (  )  [inline]

References count, logger, sleep(), sleepMillis, and sync.

void alma::acs::concurrent::ThreadLoopRunnerTest::MyAction::sleep (  )  throws InterruptedException [inline, protected]

References sleepMillis.

Referenced by run().


Member Data Documentation

Referenced by getCount(), reset(), and run().

Referenced by run().

Referenced by run(), and sleep().

Referenced by reset(), and run().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2