Package org.apache.etch.util

Examples of org.apache.etch.util.Todo


      return 0;
   
    if (!server)
    {
      // use a Todo so as to not unnecessarily block AlarmManager.
      TodoManager.addTodo( new Todo()
      {
        public void doit( TodoManager mgr ) throws Exception
        {
          sendKeepAliveReq();
        }
View Full Code Here


      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 delayDoit2a( final int code )
    {
      try
      {
        TodoManager.addTodo( new Todo()
        {
          public void doit( TodoManager mgr ) throws Exception
          {
            StructValue req = new StructValue( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Request, vf );
            req.put( MyValueFactoryCuae._mf_code, code );
View Full Code Here

    private void delayDoit2b( final int code, final String message )
    {
      try
      {
        TodoManager.addTodo( new Todo()
        {
          public void doit( TodoManager mgr ) throws Exception
          {
            StructValue req = new StructValue( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_ReqWithMessage, vf );
            req.put( MyValueFactoryCuae._mf_code, code );
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

    // 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 org.apache.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.