001/*
002 * Copyright (c) 2006-2011 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 *
009 * Contributors:
010 *     Nuxeo - initial API and implementation
011 *
012 * $Id$
013 */
014package org.nuxeo.ecm.core.event;
015
016import org.nuxeo.ecm.core.event.impl.EventListenerList;
017
018/**
019 * Interface for EventService administration
020 *
021 * @author Thierry Delprat
022 */
023public interface EventServiceAdmin {
024
025    int getEventsInQueueCount();
026
027    int getActiveThreadsCount();
028
029    boolean isBlockAsyncHandlers();
030
031    void setBlockAsyncHandlers(boolean blockAsyncHandlers);
032
033    boolean isBlockSyncPostCommitHandlers();
034
035    void setBlockSyncPostCommitHandlers(boolean blockSyncPostCommitHandlers);
036
037    EventListenerList getListenerList();
038
039    void setListenerEnabledFlag(String listenerName, boolean enabled);
040
041    boolean isBulkModeEnabled();
042
043    void setBulkModeEnabled(boolean bulkModeEnabled);
044
045}