Sometimes when doing business, the need for business success, the callback function will be operating.
For the needs of the scene, how to design it
achieve
Task: abstract class, two methods, which use a assigned to the client, a method for performing service operations, the callback function is required. execute () is an abstract method to be implemented subclass
SimpleTask: implementation of a specific service logic execution