2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.openflowplugin.openflow.md.queue;
10 import java.util.Collection;
13 * @param <IN> message wrapping type
16 public interface MessageSourcePollRegistrator<IN> {
19 * @param messageSource to read from during processing
20 * @return closeable registration
22 AutoCloseable registerMessageSource(IN messageSource);
25 * @param messageSource to be unregistered
26 * @return true if successfully unregistered
28 boolean unregisterMessageSource(IN messageSource);
31 * @return collection of registered message sources
33 Collection<IN> getMessageSources();
36 * @return the harvest handle
38 HarvesterHandle getHarvesterHandle();