Nitido Inc.

com.nitido.throttle
Interface NonBlockingThrottle

All Known Implementing Classes:
CountPerTimeThrottle, CountThrottle

public interface NonBlockingThrottle

The base interface for all throttle objects that will not block the requesting threads.

It declares the basic methods required for a non-blocking throttle object. All the implementations should be thread-safe and can be invoked by multiple threads at the same time.


Method Summary
 boolean enterThrottle()
          The method to call when entering the throttle.
 void exitThrottle()
          The method to call when leaving the throttle.
 

Method Detail

enterThrottle

boolean enterThrottle()
The method to call when entering the throttle.

Returns:
true if pass the throttle control successfully, false if otherwise.

exitThrottle

void exitThrottle()
The method to call when leaving the throttle.


Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.