Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E9007200B87 for ; Mon, 19 Sep 2016 22:00:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E7BB2160ABB; Mon, 19 Sep 2016 20:00:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 258C7160ACC for ; Mon, 19 Sep 2016 22:00:22 +0200 (CEST) Received: (qmail 18395 invoked by uid 500); 19 Sep 2016 20:00:22 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 18363 invoked by uid 99); 19 Sep 2016 20:00:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 20:00:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EE6292C1B75 for ; Mon, 19 Sep 2016 20:00:21 +0000 (UTC) Date: Mon, 19 Sep 2016 20:00:21 +0000 (UTC) From: "Olivier Liegeon (JIRA)" To: dev@curator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CURATOR-350) Allow to close executor service on shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 20:00:24 -0000 Olivier Liegeon created CURATOR-350: --------------------------------------- Summary: Allow to close executor service on shutdown Key: CURATOR-350 URL: https://issues.apache.org/jira/browse/CURATOR-350 Project: Apache Curator Issue Type: Improvement Reporter: Olivier Liegeon Assignee: Jordan Zimmerman In Issue 251, we got the ability to create a ChildrenCache and passing an ExecutorService. This change does allow to close this service when closing the childrenCache. This should be a parameter, false by default to keep current behavior in {{CloseableExecutorService}} {code} /** * @param executorService the service to decorate */ public CloseableExecutorService(ExecutorService executorService) { this(executorService, false); } {code} {code} if (shutdownOnClose) { executorService.shutdownNow(); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)