1d1980fc36c83779c8364386b3b91681f9aa7f65
[controller.git] / opendaylight / md-sal / messagebus-spi / src / main / java / org / opendaylight / controller / messagebus / spi / EventSourceRegistry.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.messagebus.spi;
9
10 /**
11  * EventSourceRegistry is used to register {@link EventSource}.
12  */
13 @Deprecated(forRemoval = true)
14 public interface EventSourceRegistry extends AutoCloseable {
15
16     /**
17      * Registers the given EventSource for public consumption. The EventSource is
18      * associated with the node identified via {@link EventSource#getSourceNodeKey}.
19      *
20      * @param eventSource the EventSource instance to register
21      * @return an EventSourceRegistration instance that is used to unregister the EventSource
22      *         via {@link EventSourceRegistration#close()}.
23      */
24     <T extends EventSource> EventSourceRegistration<T> registerEventSource(T eventSource);
25 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.