Commit f7b0ec98b606006048df5c4c7bc9f15a88edf60c
Committed by
Andrew Shvayka
1 parent
5251782c
TB-75 Service shutdown added
Showing
1 changed file
with
6 additions
and
0 deletions
... | ... | @@ -34,6 +34,7 @@ import org.thingsboard.server.dao.timeseries.TimeseriesDao; |
34 | 34 | import org.thingsboard.server.dao.util.SqlDao; |
35 | 35 | |
36 | 36 | import javax.annotation.Nullable; |
37 | +import javax.annotation.PreDestroy; | |
37 | 38 | import java.util.ArrayList; |
38 | 39 | import java.util.List; |
39 | 40 | import java.util.Optional; |
... | ... | @@ -262,4 +263,9 @@ public class JpaTimeseriesDao extends JpaAbstractDaoListeningExecutorService imp |
262 | 263 | }); |
263 | 264 | } |
264 | 265 | |
266 | + @PreDestroy | |
267 | + void onDestroy() { | |
268 | + insertService.shutdown(); | |
269 | + } | |
270 | + | |
265 | 271 | } | ... | ... |