task manager API for java