public class EventDispatcher extends Object
| Constructor and Description |
|---|
EventDispatcher(AbstractStreamDefinitionStore streamDefinitionStore,
DataBridgeConfiguration dataBridgeConfiguration,
AuthenticationHandler authenticationHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(AgentCallback agentCallback) |
void |
addCallback(RawDataAgentCallback agentCallback)
Add thrift subscribers
|
String |
defineStream(String streamDefinition,
AgentSession agentSession) |
String |
defineStream(String streamDefinition,
AgentSession agentSession,
String indexDefinition) |
boolean |
deleteStream(String streamName,
String streamVersion,
AgentSession agentSession) |
String |
findStreamId(String streamName,
String streamVersion,
AgentSession agentSession) |
List<RawDataAgentCallback> |
getRawDataSubscribers() |
List<AgentCallback> |
getSubscribers() |
void |
publish(Object eventBundle,
AgentSession agentSession,
EventConverter eventConverter) |
void |
reloadDomainNameStreamTypeHolderCache(int tenantId) |
void |
updateStreamDefinitionHolder(AgentSession agentSession) |
public EventDispatcher(AbstractStreamDefinitionStore streamDefinitionStore, DataBridgeConfiguration dataBridgeConfiguration, AuthenticationHandler authenticationHandler)
public void addCallback(AgentCallback agentCallback)
public void addCallback(RawDataAgentCallback agentCallback)
agentCallback - public String defineStream(String streamDefinition, AgentSession agentSession) throws org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionException, org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException, StreamDefinitionStoreException
org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionExceptionorg.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedExceptionStreamDefinitionStoreExceptionpublic String defineStream(String streamDefinition, AgentSession agentSession, String indexDefinition) throws org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionException, org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException, StreamDefinitionStoreException
org.wso2.carbon.databridge.commons.exception.MalformedStreamDefinitionExceptionorg.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedExceptionStreamDefinitionStoreExceptionpublic void publish(Object eventBundle, AgentSession agentSession, EventConverter eventConverter)
public void updateStreamDefinitionHolder(AgentSession agentSession)
public void reloadDomainNameStreamTypeHolderCache(int tenantId)
public List<AgentCallback> getSubscribers()
public List<RawDataAgentCallback> getRawDataSubscribers()
public String findStreamId(String streamName, String streamVersion, AgentSession agentSession) throws StreamDefinitionStoreException
StreamDefinitionStoreExceptionpublic boolean deleteStream(String streamName, String streamVersion, AgentSession agentSession)
Copyright © 2015 WSO2. All rights reserved.