If your task processor wants to trigger message boundary events it must provide additional enumerations for interrupting and/or non-interrupting events and it must implement a different interface.
The Agent SDK provides a pre-defined enumeration called NoEvents if you do not want to specify any event for a specific event type.