Package net.sf.hajdbc.util

Examples of net.sf.hajdbc.util.TimePeriod


    {
      CountDownLatch latch = this.latchRef.get();
     
      if (latch != null)
      {
        TimePeriod timeout = LifecycleRegistry.this.factory.getTimeout();
        try
        {
          if (!latch.await(timeout.getValue(), timeout.getUnit()))
          {
            throw LifecycleRegistry.this.exceptionFactory.createException(new TimeoutException());
          }
        }
        catch (InterruptedException e)
View Full Code Here


   * @param value the timeout to set, expressed in the specified units
   * @param unit the time unit with which to qualify the specified timeout value
   */
  public void setTimeout(long value, TimeUnit unit)
  {
    this.timeout = new TimePeriod(value, unit);
  }
View Full Code Here

    private final TimePeriod timeout;
   
    Factory(SimpleObject object, int seconds)
    {
      this.object = object;
      this.timeout = new TimePeriod(seconds, TimeUnit.SECONDS);
    }
View Full Code Here

    configurationFactories.put(id,  configurationFactory);
  }
 
  public static void setTimeout(long value, TimeUnit unit)
  {
    timeout = new TimePeriod(value, unit);
  }
View Full Code Here

  /**
   * @param timeout the timeout to set
   */
  public void setTimeout(long value, TimeUnit unit)
  {
    this.timeout = new TimePeriod(value, unit);
  }
View Full Code Here

TOP

Related Classes of net.sf.hajdbc.util.TimePeriod

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.