Package com.mchange.v2.async

Examples of com.mchange.v2.async.RoundRobinAsynchronousRunner


    public synchronized void postRunnable(Runnable r)
    {
  try
      {
    if (gentle_close_requested)
        throw new ResourceClosedException("Attempted to post a task to a closing " +
                  "CarefulRunnableQueue.");
   
    taskList.add(r);
    this.notifyAll();
      }
  catch (NullPointerException e)
      {
    //e.printStackTrace();
    if (Debug.DEBUG)
        {
      if ( logger.isLoggable( MLevel.FINE ) )
          logger.log( MLevel.FINE, "NullPointerException while posting Runnable.", e );
        }
    if (taskList == null)
        throw new ResourceClosedException("Attempted to post a task to a CarefulRunnableQueue " +
                  "which has been closed, or whose TaskThread has been " +
                  "interrupted.");
    else
        throw e;
      }
View Full Code Here


      {
    queue.add( r );
    this.notifyAll();
      }
  else
      throw new ResourceClosedException("Attempted to use a ThreadPerTaskAsynchronousRunner in a closed or broken state.");

    }
View Full Code Here

        {
      if ( logger.isLoggable( MLevel.FINE ) )
          logger.log( MLevel.FINE, "NullPointerException while posting Runnable -- Probably we're closed.", e );
        }
    this.close( true );
    throw new ResourceClosedException("Attempted to use a RoundRobinAsynchronousRunner in a closed or broken state.");
      }
    }
View Full Code Here

        {
      if ( logger.isLoggable( MLevel.FINE ) )
          logger.log( MLevel.FINE, "NullPointerException in asRunnableQueue() -- Probably we're closed.", e );
        }
    this.close( true );
    throw new ResourceClosedException("Attempted to use a RoundRobinAsynchronousRunner in a closed or broken state.");
      }
    }
View Full Code Here

    public synchronized void postRunnable(Runnable r)
    {
  try
      {
    if (gentle_close_requested)
        throw new ResourceClosedException("Attempted to post a task to a closing " +
                  "CarefulRunnableQueue.");
   
    taskList.add(r);
    this.notifyAll();
      }
  catch (NullPointerException e)
      {
    //e.printStackTrace();
    if (Debug.DEBUG)
        {
      if ( logger.isLoggable( MLevel.FINE ) )
          logger.log( MLevel.FINE, "NullPointerException while posting Runnable.", e );
        }
    if (taskList == null)
        throw new ResourceClosedException("Attempted to post a task to a CarefulRunnableQueue " +
                  "which has been closed, or whose TaskThread has been " +
                  "interrupted.");
    else
        throw e;
      }
View Full Code Here

                if (logger.isLoggable(MLevel.FINE))
                    logger.log( MLevel.FINE,
                                "A client attempted to work with a closed Statement cache, " + "" +
                                "provoking a NullPointerException. c3p0 recovers, but this should be rare.",
                                npe);
                throw new ResourceClosedException( npe );
            }
            else
                throw npe;
        }
    }
View Full Code Here

            if ( Debug.DEBUG )
            {
                if ( logger.isLoggable( MLevel.FINE ) )
                    logger.log( MLevel.FINE, "NullPointerException while posting Runnable -- Probably we're closed.", e );
            }
            throw new ResourceClosedException("Attempted to use a ThreadPoolAsynchronousRunner in a closed or broken state.");
        }
    }
View Full Code Here

            if ( Debug.DEBUG )
            {
                if ( logger.isLoggable( MLevel.FINE ) )
                    logger.log( MLevel.FINE, "NullPointerException while posting Runnable -- Probably we're closed.", e );
            }
            throw new ResourceClosedException("Attempted to use a ThreadPoolAsynchronousRunner in a closed or broken state.");
        }
    }
View Full Code Here

      {
    queue.add( r );
    this.notifyAll();
      }
  else
      throw new ResourceClosedException("Attempted to use a ThreadPerTaskAsynchronousRunner in a closed or broken state.");

    }
View Full Code Here

        {
      if ( logger.isLoggable( MLevel.FINE ) )
          logger.log( MLevel.FINE, "NullPointerException while posting Runnable -- Probably we're closed.", e );
        }
    this.close( true );
    throw new ResourceClosedException("Attempted to use a RoundRobinAsynchronousRunner in a closed or broken state.");
      }
    }
View Full Code Here

TOP

Related Classes of com.mchange.v2.async.RoundRobinAsynchronousRunner

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.