Skip to content

Commit 1bf1eed

Browse files
authored
Merge pull request #9 from vinscom/minor-refactoring
Minor Refactoring
2 parents c8eaf25 + b8dc3fb commit 1bf1eed

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

config-layers/common/Initial.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#/Initial
12
$class=in.erail.glue.component.Initial
23

34
initial=\

src/main/java/in/erail/schedular/SchedulerService.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@
55
import io.reactivex.Scheduler;
66
import io.reactivex.schedulers.Schedulers;
77
import java.util.concurrent.TimeUnit;
8+
import org.apache.logging.log4j.Logger;
89

910
/**
1011
*
1112
* @author vinay
1213
*/
1314
public abstract class SchedulerService {
1415

16+
private Logger mLog;
1517
private SchedulerType mSchedularType;
1618
private TimeUnit mTimeUnit;
1719
private long mInterval;
1820
private boolean mRecurring;
1921

2022
@StartService
21-
void start() {
23+
public void start() {
2224

2325
Scheduler scheduler;
2426

@@ -85,4 +87,12 @@ public void setRecurring(boolean pRecurring) {
8587
this.mRecurring = pRecurring;
8688
}
8789

90+
public Logger getLog() {
91+
return mLog;
92+
}
93+
94+
public void setLog(Logger pLog) {
95+
this.mLog = pLog;
96+
}
97+
8898
}

0 commit comments

Comments
 (0)