Examples of Reserve()


Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

       
        waiters.add( sem );
      }
     
      try{
        sem.reserve( 1000 );
     
      }finally{
     
        synchronized( lock ){
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

           
            current_request.run();
           
            while( true ){
             
              if ( sem.reserve( 1000 )){
               
                if ( error[0] != null ){
                 
                  throw( new IOException( Debug.getNestedExceptionMessage( error[0] )));
                }
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

     
      long  time_to_go = millis_to_wait_for_attach;
     
      while( ui_manager.getUIInstances().length == 0 ){
       
        if ( sem.reserve( 1000 )){
         
          break;
        }
       
        time_to_go -= 1000;
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

      Debug.printStackTrace( e );
     
      return( null );
    }
   
    sem.reserve();
   
    return( dialog[0].getSelection());
  }
 
  protected class
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

          {
            sem.release();
          }
        });

    sem.reserve();
   
    return(
        new DownloadScrapeResult()
        {
          public Download
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

               }
             }
          }
        });
         
      sem.reserve();
     
      return result[0];
     
    }catch( Throwable e ){
     
View Full Code Here

Examples of org.gudy.azureus2.core3.util.AESemaphore.reserve()

        }
      }
    }.start();
 
 
    if ( !sem.reserve( end_of_day?15*1000:0 )){
   
      String  msg = "A UPnP device is taking a long time to release its port mappings, consider disabling this via the UPnP configuration.";

      if ( upnp_log_listener != null ){
       
View Full Code Here

Examples of org.xmlBlaster.contrib.db.DbPool.reserve()

         Set vals = searchableConfig.getSearchableColumnNames(null, "XMLBLASTER", "TABLE1");
         String[] ret = (String[])vals.toArray(new String[vals.size()]);
         assertEquals("Wrong number of colums found", 4, ret.length);
        
         SqlInfo sqlInfo = new SqlInfo(info);
         Connection conn = pool.reserve();
         sqlInfo.fillMetadata(conn, null, "XMLBLASTER", "TABLE1", null, null);
         pool.release(conn);
        
         SqlDescription description = sqlInfo.getDescription();
         boolean isConfigured = description.isColumnSearchConfigured(null);
View Full Code Here

Examples of org.xmlBlaster.contrib.db.I_DbPool.reserve()

      log.info("Start testPerformAllOperationsOnTable");
      I_DbPool pool = (I_DbPool)info.getObject("db.pool");
      assertNotNull("pool must be instantiated", pool);
      Connection conn = null;
      try {
         conn  = pool.reserve();
         conn.setAutoCommit(true);
         String sql = null;
         {
            try {
               sql = "CREATE TABLE " + this.tableName + " (name VARCHAR(20), age INTEGER, PRIMARY KEY(name))";
View Full Code Here

Examples of org.xmlBlaster.contrib.db.I_DbPool.reserve()

      log.info("Start testTableWithLongs");
      I_DbPool pool = (I_DbPool)info.getObject("db.pool");
      assertNotNull("pool must be instantiated", pool);
      Connection conn = null;
      try {
         conn  = pool.reserve();
         conn.setAutoCommit(true);
         String sql = null;
         {
            try {
               sql = "CREATE TABLE " + this.tableName + " (name VARCHAR(20), comments LONG, PRIMARY KEY(name))";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.