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
44 {
55 bool call ( ) ;
66
7- void onFinished ( ) { }
7+ void onFinished ( ) ;
88
9- void onRemoved ( ) { }
9+ void onRemoved ( ) ;
1010 }
1111}
Original file line number Diff line number Diff line change @@ -345,6 +345,11 @@ public void onFinished()
345345 {
346346 eventLoopByEvent . Remove ( this ) ;
347347 }
348+
349+ public void onRemoved ( )
350+ {
351+ // do nothing
352+ }
348353 }
349354
350355 public class ScheduledEvent : EzyEventLoopEvent
Original file line number Diff line number Diff line change @@ -34,7 +34,17 @@ public bool call()
3434 return true ;
3535 }
3636
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 ( )
3848 {
3949 int periodMillis = pingManager . getPingPeriod ( ) ;
4050 if ( eventLoopGroup != null )
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ public void onFinished()
5353 setStopped ( true ) ;
5454 }
5555
56+ public void onRemoved ( )
57+ {
58+ // do nothing
59+ }
60+
5661 protected abstract String getThreadName ( ) ;
5762
5863 protected virtual void run ( )
You can’t perform that action at this time.
0 commit comments