public abstract class AbstractEventBus extends java.lang.Object implements EventBus
构造器和说明 |
---|
AbstractEventBus() |
限定符和类型 | 方法和说明 |
---|---|
void |
deregisterFor(GenericEventListener gel,
OLATResourceable ores)
deregisters/removes a GenericEventListener to listen to events concerning the OLATResourceable ores
|
abstract void |
fireEventToListenersOf(MultiUserEvent event,
OLATResourceable ores)
fires an event to all listeners interested in events concerning this OLATResourceable ores.
|
abstract int |
getListeningIdentityCntFor(OLATResourceable ores)
Note for cluster: this method is cluster-safe. in a cluster, it takes the latest counts received from all cluster nodes and sums them up.
|
java.util.Set |
getListeningIdentityNamesFor(OLATResourceable ores)
returns a Set of Identities which had at the very moment controllers which were listening to the OLATResourceable ores.
|
java.util.Map<java.lang.String,org.olat.system.event.EventAgency> |
getUnmodifiableInfoCenter()
used only for monitoring purposes
|
void |
registerFor(GenericEventListener gel,
OLATPrincipal principal,
OLATResourceable ores)
registers a GenericEventListener to listen to events concerning the OLATResourceable ores
|
java.lang.String |
toString() |
public void registerFor(GenericEventListener gel, OLATPrincipal principal, OLATResourceable ores)
EventBus
registerFor
在接口中 EventBus
gel
- the GenericEventListener / the class implementing itores
- the OLATResourceablepublic void deregisterFor(GenericEventListener gel, OLATResourceable ores)
EventBus
deregisterFor
在接口中 EventBus
public java.util.Set getListeningIdentityNamesFor(OLATResourceable ores)
EventBus
getListeningIdentityNamesFor
在接口中 EventBus
ores
- the OLATResourceablepublic abstract int getListeningIdentityCntFor(OLATResourceable ores)
EventBus
getListeningIdentityCntFor
在接口中 EventBus
ores
- the resourceablepublic abstract void fireEventToListenersOf(MultiUserEvent event, OLATResourceable ores)
EventBus
fireEventToListenersOf
在接口中 EventBus
event
- the OLATResourceableEvent (must be serializable!, for multiple server olat installations)ores
- the OLATResourceablepublic java.util.Map<java.lang.String,org.olat.system.event.EventAgency> getUnmodifiableInfoCenter()
getUnmodifiableInfoCenter
在接口中 EventBus
public java.lang.String toString()
toString
在类中 java.lang.Object