@Override public boolean lock(long timeout) { verifyConversationContextActive(); boolean success; try { success = concurrencyLock.tryLock(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); success = false; } if (success) { ConversationLogger.LOG.conversationLocked(this); } else { ConversationLogger.LOG.conversationUnavailable(timeout, this); } return success; }
@Override public boolean lock(long timeout) { verifyConversationContextActive(); boolean success; try { success = concurrencyLock.tryLock(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); success = false; } if (success) { ConversationLogger.LOG.conversationLocked(this); } else { ConversationLogger.LOG.conversationUnavailable(timeout, this); } return success; }
@Override public boolean lock(long timeout) { verifyConversationContextActive(); boolean success; try { success = concurrencyLock.tryLock(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); success = false; } if (success) { ConversationLogger.LOG.conversationLocked(this); } else { ConversationLogger.LOG.conversationUnavailable(timeout, this); } return success; }
@Override public boolean lock(long timeout) { verifyConversationContextActive(); boolean success; try { success = concurrencyLock.tryLock(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); success = false; } if (success) { ConversationLogger.LOG.conversationLocked(this); } else { ConversationLogger.LOG.conversationUnavailable(timeout, this); } return success; }
@Override public boolean lock(long timeout) { verifyConversationContextActive(); boolean success; try { success = concurrencyLock.tryLock(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); success = false; } if (success) { ConversationLogger.LOG.conversationLocked(this); } else { ConversationLogger.LOG.conversationUnavailable(timeout, this); } return success; }
@Override public boolean lock(long timeout) { verifyConversationContextActive(); boolean success; try { success = concurrencyLock.tryLock(timeout, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Thread.currentThread().interrupt(); success = false; } if (success) { ConversationLogger.LOG.conversationLocked(this); } else { ConversationLogger.LOG.conversationUnavailable(timeout, this); } return success; }