Package com.embabel.agent.event
Class MulticastAgenticEventListener
-
- All Implemented Interfaces:
-
com.embabel.agent.event.AgenticEventListener
public final class MulticastAgenticEventListener implements AgenticEventListener
Multicast event listener that forwards events to multiple listeners. If any listener throws an exception, it is logged but does not stop the processing of other listeners.
-
-
Constructor Summary
Constructors Constructor Description MulticastAgenticEventListener(List<AgenticEventListener> eventListeners)
-
Method Summary
Modifier and Type Method Description UnitonPlatformEvent(AgentPlatformEvent event)An event relating to the platform or leading to the creation of an AgentProcess, such as the choice of a goal. UnitonProcessEvent(AgentProcessEvent event)Listen to an event during the execution of an AgentProcess -
-
Constructor Detail
-
MulticastAgenticEventListener
MulticastAgenticEventListener(List<AgenticEventListener> eventListeners)
-
-
Method Detail
-
onPlatformEvent
Unit onPlatformEvent(AgentPlatformEvent event)
An event relating to the platform or leading to the creation of an AgentProcess, such as the choice of a goal. No process is available at this point.
-
onProcessEvent
Unit onProcessEvent(AgentProcessEvent event)
Listen to an event during the execution of an AgentProcess
-
-
-
-