Class MessageEventService
- java.lang.Object
-
- org.pentaho.di.trans.ael.websocket.MessageEventService
-
public class MessageEventService extends Object
Created by fcamara on 8/17/17.
-
-
Constructor Summary
Constructors Constructor Description MessageEventService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHandler(org.pentaho.di.engine.api.remote.Message eventType, MessageEventHandler handler)
No handler duplication in a list for a given event typevoid
fireEvent(org.pentaho.di.engine.api.remote.Message event)
Fire the given Message only to interested handlersList<MessageEventHandler>
getHandlersFor(org.pentaho.di.engine.api.remote.Message eventType)
boolean
hasHandlers(org.pentaho.di.engine.api.remote.Message eventType)
-
-
-
Method Detail
-
fireEvent
public void fireEvent(org.pentaho.di.engine.api.remote.Message event) throws MessageEventFireEventException
Fire the given Message only to interested handlers- Throws:
MessageEventFireEventException
-
addHandler
public final void addHandler(org.pentaho.di.engine.api.remote.Message eventType, MessageEventHandler handler) throws HandlerRegistrationException
No handler duplication in a list for a given event type- Throws:
HandlerRegistrationException
-
hasHandlers
public final boolean hasHandlers(org.pentaho.di.engine.api.remote.Message eventType)
-
getHandlersFor
public List<MessageEventHandler> getHandlersFor(org.pentaho.di.engine.api.remote.Message eventType)
-
-