001/******************************************************************************* 002 * Copyright (c) 2006-2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 ******************************************************************************/ 009package org.nuxeo.runtime.trackers.concurrent; 010 011import org.nuxeo.runtime.services.event.EventService; 012 013/** 014 * {@link ThreadEvent} handler that should be implemented by consumers. Could be enlisted in the @{link 015 * {@link EventService} through the use of a {@link ThreadEventListener}. 016 * 017 * @since 6.0 018 * @author Stephane Lacoin at Nuxeo (aka matic) 019 */ 020public interface ThreadEventHandler { 021 022 void onEnter(boolean isLongRunning); 023 024 void onLeave(); 025 026}