alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V > Class Reference

Inheritance diagram for alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

call () throws Exception

Package Functions

 InterceptingCallable (Callable< V > delegate, CountDownLatch threadGate, CountDownLatch confirmWaiting, long awaitExecutionTimeout, TimeUnit unit)

Private Attributes

final Callable< V > delegateCallable
final CountDownLatch threadGate
final CountDownLatch confirmWaiting
final long awaitExecutionTimeout
final TimeUnit unit

Detailed Description

Wrapper used to block a thread created by ThreadBurstExecutorService#delegate, until the thread gate opens.


Constructor & Destructor Documentation

alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::InterceptingCallable ( Callable< V >  delegate,
CountDownLatch  threadGate,
CountDownLatch  confirmWaiting,
long  awaitExecutionTimeout,
TimeUnit  unit 
) [inline, package]

Member Function Documentation

V alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::call (  )  throws Exception [inline]

The executor has started this thread, but here we wait for the thread gate to open, and only then call the delegate runnable submitted by the user.

References alma::acs::concurrent::ThreadBurstExecutorService::threadGate.


Member Data Documentation

final long alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::awaitExecutionTimeout [private]
final CountDownLatch alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::confirmWaiting [private]
final Callable<V> alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::delegateCallable [private]
final CountDownLatch alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::threadGate [private]
final TimeUnit alma::acs::concurrent::ThreadBurstExecutorService::InterceptingCallable< V >::unit [private]

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

Generated by  doxygen 1.6.2