public interface OpenEventSpace extends EventSpace
A participant is a software entity that is registered in order to receive the events that are emitted into the space. A participant is usually an agent, but not restricted to this type of software entity. It could be also a user-interface module.
A weak participant is participant that could be considered as not a first-order member of the space.
When a participant is weak, it is not considered by functions such as #isPseudoEmpty(java.lang.UUID)
.
Modifier and Type | Method and Description |
---|---|
default Address |
register(participant : EventListener,
[weakParticipant : boolean])
Deprecated.
since 0.12, see
OpenEventSpace.registerStrongParticipant(EventListener) and
{@link #registerStrongParticipant(EventListener). |
Address |
registerStrongParticipant(participant : EventListener)
Registers the strong participant inside this space.
|
Address |
registerWeakParticipant(participant : EventListener)
Registers the weak participant inside this space.
|
Address |
unregister(participant : EventListener)
Unregisters the entity inside this space.
|
emit, emit, getAddress
forEachStrongParticipant, forEachWeakParticipant, getNumberOfStrongParticipants, getNumberOfWeakParticipants, getSpaceID, isPseudoEmpty, isPseudoEmpty
@Deprecated
default def
register(participant : EventListener,
[weakParticipant : boolean]) : Address
OpenEventSpace.registerStrongParticipant(EventListener)
and
{@link #registerStrongParticipant(EventListener).OpenEventSpace
If the agent is already registered the address is return, but the listener is not replaced.
participant
- the participant to register.def
registerStrongParticipant(participant : EventListener) : Address
OpenEventSpace
If the agent is already registered the address is return, but the listener is not replaced.
participant
- the participant to register.def
registerWeakParticipant(participant : EventListener) : Address
OpenEventSpace
If the agent is already registered the address is return, but the listener is not replaced.
participant
- the participant to register.def
unregister(participant : EventListener) : Address
OpenEventSpace
participant
- the participant to unregister.Copyright © 2021 the original authors or authors.