public class WebSocketMessageRouters extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<String,WebSocketMessageRouter> |
routers |
| Constructor and Description |
|---|
WebSocketMessageRouters() |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterProcessor(String endpointId,
org.apache.nifi.processor.Processor processor) |
private WebSocketMessageRouter |
getRouterOrCreate(String endpointId) |
WebSocketMessageRouter |
getRouterOrFail(String endpointId) |
boolean |
isProcessorRegistered(String endpointId,
org.apache.nifi.processor.Processor processor) |
void |
registerProcessor(String endpointId,
org.apache.nifi.processor.Processor processor) |
void |
sendMessage(String endpointId,
String sessionId,
SendMessage sendMessage) |
private Map<String,WebSocketMessageRouter> routers
private WebSocketMessageRouter getRouterOrCreate(String endpointId)
public WebSocketMessageRouter getRouterOrFail(String endpointId) throws WebSocketConfigurationException
WebSocketConfigurationExceptionpublic void registerProcessor(String endpointId, org.apache.nifi.processor.Processor processor) throws WebSocketConfigurationException
WebSocketConfigurationExceptionpublic boolean isProcessorRegistered(String endpointId, org.apache.nifi.processor.Processor processor)
public void deregisterProcessor(String endpointId, org.apache.nifi.processor.Processor processor) throws WebSocketConfigurationException
WebSocketConfigurationExceptionpublic void sendMessage(String endpointId, String sessionId, SendMessage sendMessage) throws IOException, WebSocketConfigurationException
Copyright © 2021 Apache NiFi Project. All rights reserved.