public interface ProtocolListener
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(ProtocolHandler handler)
Registers a handler with the listener.
|
Collection<ProtocolHandler> |
getHandlers() |
boolean |
isRunning() |
boolean |
removeHandler(ProtocolHandler handler)
Unregisters the handler with the listener.
|
void |
setBulletinRepository(BulletinRepository bulletinRepository)
Sets the BulletinRepository that can be used to report bulletins
|
void |
start()
Starts the instance for listening for messages.
|
void |
stop()
Stops the instance from listening for messages.
|
void start()
throws IOException
IOException - exvoid stop() throws IOException
IOException - exboolean isRunning()
Collection<ProtocolHandler> getHandlers()
void addHandler(ProtocolHandler handler)
handler - a handlervoid setBulletinRepository(BulletinRepository bulletinRepository)
bulletinRepository - repoboolean removeHandler(ProtocolHandler handler)
handler - a handlerCopyright © 2021 Apache NiFi Project. All rights reserved.