Package etch.util

Examples of etch.util.Todo


      notifies = waiters.toArray( new Notify[n] );
      waiters.clear();
    }

    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager mgr ) throws Exception
      {
        for (Notify n : notifies)
          n.bufferAvailable( ByteBufferPool.this );
View Full Code Here


  private void fireUp( MyStreamHandler h )
  {
    setHandler( h );
    status.set( Session.UP );
   
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( Session.UP );
      }
View Full Code Here

    status.set( Session.DOWN );
   
    if (started && host != null && options.reconnectDelay > 0)
      AlarmManager.staticAdd( this, 0, options.reconnectDelay );
   
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( Session.DOWN );
      }
View Full Code Here

    } );
  }

  private void fireException( String what, final Exception e )
  {
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( e );
      }
View Full Code Here

 
  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();
            }
View Full Code Here

  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 );
      }
View Full Code Here

  private void fireDown()
  {
    setHandler( null );
    status.set( Session.DOWN );
   
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( Session.DOWN );
      }
View Full Code Here

    // ignore
  }

  public void exception( String what, final Exception e )
  {
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( e );
      }
View Full Code Here

  }

  private void fireUp() throws Exception
  {
    status.set( Session.UP );
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( Session.UP );
      }
View Full Code Here

  }

  private void fireDown() throws Exception
  {
    status.set( Session.DOWN );
    TodoManager.addTodo( new Todo()
    {
      public void doit( TodoManager m ) throws Exception
      {
        session.sessionNotify( Session.DOWN );
      }
View Full Code Here

TOP

Related Classes of etch.util.Todo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.