X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fdatabase%2FConnectionFactory.java;h=e32b8e0d6e15d047d5913a2812a2ab5d6b9bc587;hb=b7e64f754d6b2a5211a46a10182c631c799f66b4;hp=0f14e600b9d93f33d8dcd3c303d9beace31747af;hpb=0d01dc7f9cea83d9b70a021ac52749045cfbf6ad;p=dmaap%2Fdbcapi.git diff --git a/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java b/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java index 0f14e60..e32b8e0 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java +++ b/src/main/java/org/onap/dmaap/dbcapi/database/ConnectionFactory.java @@ -3,6 +3,7 @@ * org.onap.dmaap * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2019 IBM. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,6 +109,7 @@ public class ConnectionFactory { TimeUnit.SECONDS.sleep(seconds); } catch (InterruptedException e) { logger.debug("Waiting interrupted. ", e); + Thread.currentThread().interrupt(); } } }