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
500723e1
Commit
500723e1
authored
May 25, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志级别
parent
c41f1c13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DaemonScanThreadRunHelperRedisLock.java
.../com/byit/factory/DaemonScanThreadRunHelperRedisLock.java
+2
-2
MakeUpFlowThreadRunHelper.java
...ava/com/byit/thread/helper/MakeUpFlowThreadRunHelper.java
+1
-1
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/factory/DaemonScanThreadRunHelperRedisLock.java
View file @
500723e1
...
@@ -40,8 +40,8 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
...
@@ -40,8 +40,8 @@ public class DaemonScanThreadRunHelperRedisLock extends BaseDaemonScanThreadRunH
//定义睡眠变量
//定义睡眠变量
Long
sleepTime
=
0L
;
Long
sleepTime
=
0L
;
try
{
try
{
//加锁
//加锁
60秒后超时
boolean
trlock
=
RedissLockUtil
.
trlock
(
lockName
,
1
0
);
boolean
trlock
=
RedissLockUtil
.
trlock
(
lockName
,
6
0
);
if
(
trlock
)
{
if
(
trlock
)
{
log
.
debug
(
"------------{},加锁成功,锁名称为{}----------"
,
threadName
,
lockName
);
log
.
debug
(
"------------{},加锁成功,锁名称为{}----------"
,
threadName
,
lockName
);
dateAligned
(
CYCLE_INTERVAL
,
threadName
);
dateAligned
(
CYCLE_INTERVAL
,
threadName
);
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/thread/helper/MakeUpFlowThreadRunHelper.java
View file @
500723e1
...
@@ -28,7 +28,7 @@ import java.util.stream.Collectors;
...
@@ -28,7 +28,7 @@ import java.util.stream.Collectors;
@Slf4j
@Slf4j
public
class
MakeUpFlowThreadRunHelper
extends
BaseThreadRunHelper
{
public
class
MakeUpFlowThreadRunHelper
extends
BaseThreadRunHelper
{
private
final
int
PRE_TIME
=
30
;
private
final
int
PRE_TIME
=
30
;
private
static
final
String
LOCK_NAME
=
"
make_up_lock
"
;
private
static
final
String
LOCK_NAME
=
"
MakeUpFlowThreadRunHelper
"
;
private
final
DataSource
dataSource
;
private
final
DataSource
dataSource
;
private
final
WaitingRecordService
waitingRecordService
;
private
final
WaitingRecordService
waitingRecordService
;
...
...
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