Mistři v programování na #hovnokod

Java #226

...

                        new Thread(new Runnable() {
                                public void run() {
                                        synchronized (XXXXWSClient.getReadLock()) {
                                                try {
                                                        if (XXXXWSClient.callXXWebServiceForAlert(sUser.getENUM())) {
                                                                logger.debug("Creating an alert for required learning");
                                                                alerts.addEvent(generateXXReqLearningAlert(sUser.getENUM()));
                                                        }
                                                } catch (SocketTimeoutException e) {
                                                        logger.error("Call to XXX webservice timedout - Increase the \"my.webservice.call.timeout\" setting on \"application.properties\"");
                                                }
                                        }
                                }
                        }).start();
---------------------
        private static Boolean readLock = new Boolean(Boolean.TRUE);

        public static Boolean getReadLock() {
                return readLock;
        }

Anonymous,