Callback when message store in offline storage

Is there a mechanism by which the Offlinestorage system can notify a listener when a message is stored in the offline storage. I would like to perform additional actions when a message is stored in the offline storage and I am trying to understand what is the best way for doing this.

Thank you,

rphadnis