@@ -0,0 +1,297 @@
+/*%0A* Created at 18:33 on 29/11/15%0A*/%0Apackage com.example.api;%0A%0A/**%0A * @author zzhao%0A */%0Apublic interface TokenBucket %7B%0A%0A    void takeBlocking() throws InterruptedException;%0A%0A    void takeBlocking(int amount) throws InterruptedException;%0A%0A    boolean tryTake();%0A%0A    boolean tryTake(int amount);%0A%7D%0A

add toy token bucket