Just some ascii emotion for fun... 

Patrick Huang 
Senior Software Engineer 
Engineering - Internationalisation 
Red Hat 

----- Original Message -----

> From: "Sean Flanigan" <notifications@github.com>
> To: "zanata/zanata-server" <zanata-server@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Monday, March 24, 2014 5:18:00 PM
> Subject: Re: [zanata-server] rhbz988202 - RFE: REST API rate limiting (#390)

> In zanata-war/src/test/java/org/zanata/limits/RestCallLimiterTest.java:
> > +
> > +    @Test
> > +    public void activeRequestWillBeRateLimited() throws
> > InterruptedException {
> > +        // Given: I am within max active threads count and can do my job
> > RIGHT
> > +        // NOW and permits per second is 1
> > +        double permitsPerSecond = 1;
> > +        limiter.changeRateLimitPermitsPerSecond(permitsPerSecond);
> > +
> > +        // When: I start working on heavy duty stuff
> > +        Callable<Long> callable = taskToAcquireAndMeasureBlockedTime(0);
> > +        List<Callable<Long>> tasks = Collections.nCopies(maxActive,
> > callable);
> > +        ExecutorService executorService =
> > +                Executors.newFixedThreadPool(maxActive);
> > +        List<Future<Long>> futures = executorService.invokeAll(tasks);
> > +
> > +        // Then: I get rate limited (＃｀д´)ﾉ

> What are the characters at the end of the line?

> —
> Reply to this email directly or view it on GitHub .