Our task is service checking and restart that service if it's not running.
MoreIn general terms, functional programming is a programming paradigm, and it’s about programming with functions. What functional programming may be opposed to is the imperative programming paradigm. In imperative programming style, programs are composed from elements that “do” something. “Doing” something generally implies an initial state, a transition, and an end state. This is sometimes called state mutation. Traditional imperative-style programs are often described as a series of mutations, separated with condition testing.
MoreDouble colon operator ( :: ) in Java 8 is really useful operator which may help you to reduce some code.
More