How to implement task interceptors?

Hello everyone,
Can someone refer me on how to implement a task interceptor using Camunda API?
Thank you