net.sourceforge.squirrel_sql.fw.util.Utilities.sleep()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(132)

本文整理了Java中net.sourceforge.squirrel_sql.fw.util.Utilities.sleep()方法的一些代码示例,展示了Utilities.sleep()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.sleep()方法的具体详情如下:
包路径:net.sourceforge.squirrel_sql.fw.util.Utilities
类名称:Utilities
方法名:sleep

Utilities.sleep介绍

暂无

代码示例

代码示例来源:origin: realXuJiang/bigtable-sql

private void sleepForAnHour()
{
  Utilities.sleep(1000 * 60 * 60);
}

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

private void sleepForAnHour()
{
  Utilities.sleep(1000 * 60 * 60);
}

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

public void run() {
    Utilities.sleep(50);
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        TreePath rootPath = _tree.getPathForRow(0);
        _tree.setSelectionPath(rootPath);
      }
    });            
  }
}

代码示例来源:origin: realXuJiang/bigtable-sql

public void run() {
    Utilities.sleep(50);
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        TreePath rootPath = _tree.getPathForRow(0);
        _tree.setSelectionPath(rootPath);
      }
    });            
  }
}

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

@Override
public void run()
{
  while (!isStopped)
  {
    Statement stmt = null;
    try
    {
      stmt = sqlConn.createStatement();
      if (s_log.isInfoEnabled()) {
        s_log.info("SessionConnectionKeepAlive ("+aliasName+") running SQL: "+sql);
      }
      stmt.executeQuery(sql);
    }
    catch (Throwable t)
    {
      s_log.error("run: unexpected exception while executing sql (" + sql + "): " + t.getMessage(), t);
    }
    finally
    {
      SQLUtilities.closeStatement(stmt);
    }
    // Always sleep at the end of the loop. In case we are stopped, we want to know that
    // immediately before executing the sql statement.
    Utilities.sleep(sleepMillis);
  }
}

代码示例来源:origin: realXuJiang/bigtable-sql

@Override
public void run()
{
  while (!isStopped)
  {
    Statement stmt = null;
    try
    {
      stmt = sqlConn.createStatement();
      if (s_log.isInfoEnabled()) {
        s_log.info("SessionConnectionKeepAlive ("+aliasName+") running SQL: "+sql);
      }
      stmt.executeQuery(sql);
    }
    catch (Throwable t)
    {
      s_log.error("run: unexpected exception while executing sql (" + sql + "): " + t.getMessage(), t);
    }
    finally
    {
      SQLUtilities.closeStatement(stmt);
    }
    // Always sleep at the end of the loop. In case we are stopped, we want to know that
    // immediately before executing the sql statement.
    Utilities.sleep(sleepMillis);
  }
}

代码示例来源:origin: realXuJiang/bigtable-sql

Utilities.sleep(120 * 1000L);

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

Utilities.sleep(120 * 1000L);

代码示例来源:origin: realXuJiang/bigtable-sql

Utilities.sleep(500);
if (_stmtWrapper != null) {
  _stmtWrapper.closeIfContinueReadIsNotActive();

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

Utilities.sleep(500);
if (_stmtWrapper != null) {
  _stmtWrapper.closeIfContinueReadIsNotActive();

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

if (!success)
  Utilities.sleep(_retryStrategy.getTimeToWaitBeforeRetrying(count));

代码示例来源:origin: realXuJiang/bigtable-sql

if (!success)
  Utilities.sleep(_retryStrategy.getTimeToWaitBeforeRetrying(count));

相关文章