Adding a connection renewal to refresh connection when to much fallback occurs

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@131782 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-09-26 11:03:11 +00:00
parent 0bb8ae81e0
commit b1d7c64064
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ public abstract class PersistenceBackend {
logger.trace("{} accounted succesfully from {}.", record.toString(), persistenceName);
} catch (Exception e) {
// TODO Insert Renew HERE
if(! (this instanceof FallbackPersistenceBackend)){
// TODO
}
try {
String fallabackPersistenceName = FallbackPersistenceBackend.class.getSimpleName();