예제 #1
0
 public boolean cancel(AsyncChannelRunner runner) {
   if (gravityPool == null) {
     runner.reset();
     throw new NullPointerException("Gravity not started or pool disabled");
   }
   return gravityPool.remove(runner);
 }
예제 #2
0
 public void execute(AsyncChannelRunner runner) {
   if (gravityPool == null) {
     runner.reset();
     throw new NullPointerException("Gravity not started or pool disabled");
   }
   gravityPool.execute(runner);
 }