File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ public interface EzyEventLoopEvent
4
4
{
5
5
bool call ( ) ;
6
6
7
- void onFinished ( ) { }
7
+ void onFinished ( ) ;
8
8
9
- void onRemoved ( ) { }
9
+ void onRemoved ( ) ;
10
10
}
11
11
}
Original file line number Diff line number Diff line change @@ -345,6 +345,11 @@ public void onFinished()
345
345
{
346
346
eventLoopByEvent . Remove ( this ) ;
347
347
}
348
+
349
+ public void onRemoved ( )
350
+ {
351
+ // do nothing
352
+ }
348
353
}
349
354
350
355
public class ScheduledEvent : EzyEventLoopEvent
Original file line number Diff line number Diff line change @@ -34,7 +34,17 @@ public bool call()
34
34
return true ;
35
35
}
36
36
37
- public virtual void start ( )
37
+ public void onFinished ( )
38
+ {
39
+ // do nothing
40
+ }
41
+
42
+ public void onRemoved ( )
43
+ {
44
+ // do nothing
45
+ }
46
+
47
+ public virtual void start ( )
38
48
{
39
49
int periodMillis = pingManager . getPingPeriod ( ) ;
40
50
if ( eventLoopGroup != null )
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ public void onFinished()
53
53
setStopped ( true ) ;
54
54
}
55
55
56
+ public void onRemoved ( )
57
+ {
58
+ // do nothing
59
+ }
60
+
56
61
protected abstract String getThreadName ( ) ;
57
62
58
63
protected virtual void run ( )
You can’t perform that action at this time.
0 commit comments