279280281282283284285286287288289
private void fireUp( MyAcceptHandler h ) { setHandler( h ); status.set( Session.UP ); TodoManager.addTodo( new Todo() { public void doit( TodoManager m ) throws Exception { session.sessionNotify( Session.UP ); }
298299300301302303304305306307308
private void fireDown() { setHandler( null ); status.set( Session.DOWN ); TodoManager.addTodo( new Todo() { public void doit( TodoManager m ) throws Exception { session.sessionNotify( Session.DOWN ); }
4849505152535455565758
private final TodoManager mgr; public void run( final PoolRunnable runnable ) throws Exception { mgr.add( new Todo() { public void doit( TodoManager mgr ) throws Exception { runnable.run(); }