ParticipantObserver

public interface ParticipantObserver

Interface for observing Participant creation and destruction. Since methods of this interface are called during state switching of Participant instances, the Participant.isActive() method might still return an old state during calls to methods in this interface.

Author

swrede, jwienke, jmoringe

Methods

created

void created(Participant participant, ParticipantCreateArgs<?> args)

Will be called in case a new Participant has just been created.

Parameters
  • participant – the newly created participant

  • args – the arguments used for creating this participant

destroyed

void destroyed(Participant participant)

Will be called in case a Participant is about to be destroyed.

Parameters

participant – the participant that will be destroyed