Is it possible to track document changes on Sync gateway?

I would like to be able to track document changes on sync gateway in order to trigger some actions like sending an email or a push notification when documents are changed in certain ways. Is it possible to do that in Java using Ektorp or some other library or am I doomed to track the raw stream on the changes endpoint?

I don’t know a Java Specific version but explains the pattern and the recommended changes follower is follow. You could then let it filter and trigger your Java Application as necessary.