org.jboss.messaging.utils
Interface TokenBucketLimiter

All Known Implementing Classes:
TokenBucketLimiterImpl

public interface TokenBucketLimiter

A TokenBucketLimiterImpl This class can throttle to a specfic rate, using an algorithm based on the Token Bucket metaphor http://en.wikipedia.org/wiki/Token_bucket The rate is specified in Hertz

Author:
Tim Fox

Method Summary
 int getRate()
           
 boolean isSpin()
           
 void limit()
           
 

Method Detail

getRate

int getRate()

isSpin

boolean isSpin()

limit

void limit()


Copyright © 2006 JBoss Inc. All Rights Reserved.