Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
e445a98e
Commit
e445a98e
authored
Mar 11, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
守护线程规范类修改
parent
94332515
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
BaseThreadRunHelper.java
...re/src/main/java/com/byit/thread/BaseThreadRunHelper.java
+10
-10
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/BaseThreadRunHelper.java
View file @
e445a98e
...
@@ -7,10 +7,18 @@ import javax.sql.DataSource;
...
@@ -7,10 +7,18 @@ import javax.sql.DataSource;
*/
*/
public
abstract
class
BaseThreadRunHelper
{
public
abstract
class
BaseThreadRunHelper
{
/**
/**
* 通用等待时间
*/
public
final
Long
UNIVERSAL_WAIT_TIME
=
20000L
;
/**
* 不需要等待
*/
public
final
Long
NOT_WAIT_TIME
=
100L
;
/**
* 具体要做的业务操作
* 具体要做的业务操作
* @return
返回是否需要睡眠
* @return
睡眠的时间
*/
*/
public
abstract
boolean
start
();
public
abstract
Long
start
();
/**
/**
* 返回数据库运行实例
* 返回数据库运行实例
...
@@ -23,12 +31,4 @@ public abstract class BaseThreadRunHelper {
...
@@ -23,12 +31,4 @@ public abstract class BaseThreadRunHelper {
* @return 返回行锁名称
* @return 返回行锁名称
*/
*/
public
abstract
String
getLockName
();
public
abstract
String
getLockName
();
/**
* 返回循环一轮的睡眠时间
* @return 睡眠时长
*/
public
long
getSleepTime
(){
return
20000
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment