public interface TeamLeaveListener
ListenableTeamManagerDatabase
,
TeamJoinListener
Modifier and Type | Method and Description |
---|---|
void |
handleTeamLeave(AgentIdentifier name)
Informs about agents that are about to leave the team.
|
void |
handleTeamLeft(AgentIdentifier name)
Informs about agents that successfully left the team.
|
void handleTeamLeave(AgentIdentifier name) throws LeavingNotPermittedException
Informs about agents that are about to leave the team. If there are any objections, the listener can throw an exception in order to signalise that the agent may not leave the team. In that case, the agent is not removed from the team member database and informed about the failure.
There may be multiple listeners with possible objections. Therefore, it should not be assumed that an agent has actually left the team even if one listener does not have any objections. In order to stay informed about agents successfully leaving the team use the other method.
name
- the agent that is about to leave the teamLeavingNotPermittedException
- if the agent is not allowed to leave the teamvoid handleTeamLeft(AgentIdentifier name)
Informs about agents that successfully left the team. These agents are already removed from the team member database.
At this point, objections against leaving the team are no longer possible. If there are potential objections, the other method should be used.
name
- the agent that left the teamCopyright © Aimpulse Intelligent Systems GmbH
All rights reserved.