本文整理了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
暂无
代码示例来源: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));
内容来源于网络,如有侵权,请联系作者删除!