Uses of Record Class
com.tnsai.agents.groups.GroupEvent
Packages that use GroupEvent
-
Uses of GroupEvent in com.tnsai.agents.groups
Methods in com.tnsai.agents.groups that return GroupEventModifier and TypeMethodDescriptionGroupEvent.Builder.build()static GroupEventGroupEvent.leaderElected(String groupId, Agent leader) Creates a leader elected event.static GroupEventGroupEvent.lifecycleChanged(String groupId, GroupLifecycle oldState, GroupLifecycle newState) Creates a lifecycle changed event.static GroupEventGroupEvent.memberJoined(String groupId, Agent agent) Creates a member joined event.static GroupEventGroupEvent.memberLeft(String groupId, String agentId, String reason) Creates a member left event.static GroupEventCreates a message event.static GroupEventGroupEvent.taskAssigned(String groupId, GroupTask task, String assigneeId) Creates a task assigned event.Methods in com.tnsai.agents.groups that return types with arguments of type GroupEventModifier and TypeMethodDescriptionGroupEventBus.getRecentEvents(int limit) Gets recent events.GroupEventBus.getRecentEvents(GroupEvent.Type type, int limit) Gets recent events of a specific type.Methods in com.tnsai.agents.groups with parameters of type GroupEventModifier and TypeMethodDescriptionvoidGroupEventBus.publish(GroupEvent event) Publishes an event to all subscribers.GroupEventBus.publishAsync(GroupEvent event) Publishes an event asynchronously.Method parameters in com.tnsai.agents.groups with type arguments of type GroupEventModifier and TypeMethodDescriptionGroupEventBus.subscribe(GroupEvent.Type type, Consumer<GroupEvent> handler) Subscribes to events of a specific type.GroupEventBus.subscribe(Consumer<GroupEvent> handler) Subscribes to all events.GroupEventBus.subscribe(Predicate<GroupEvent> filter, Consumer<GroupEvent> handler) Subscribes to events matching a filter.GroupEventBus.subscribe(Predicate<GroupEvent> filter, Consumer<GroupEvent> handler) Subscribes to events matching a filter.GroupEventBus.subscribeFor(String agentId, Consumer<GroupEvent> handler) Subscribes to events targeted at a specific agent.GroupEventBus.subscribeFrom(String agentId, Consumer<GroupEvent> handler) Subscribes to events from a specific agent.