Esempio n. 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);
 }
Esempio n. 2
0
 public void execute(AsyncChannelRunner runner) {
   if (gravityPool == null) {
     runner.reset();
     throw new NullPointerException("Gravity not started or pool disabled");
   }
   gravityPool.execute(runner);
 }