I have a need for some mongo dependent methods to react on connection failure, and start-over whenever connection recovered.
Is there something for that purpose available in any Java library?
I am considering combination of two options. The first one is Decorator and second is Wrapper which declares interface to be overriden and run wrapped code until completed without Mongo connection errors. Would you say these patters would work best?
Aucun commentaire:
Enregistrer un commentaire