Interface org.as2lib.env.event.multicaster.ConsumableEventMulticaster

org.as2lib.core.BasicInterface
   +--org.as2lib.env.event.EventListenerSource
      +--org.as2lib.env.event.multicaster.EventMulticaster
         +--org.as2lib.env.event.multicaster.ConsumableEventMulticaster

Description

ConsumableEventMulticaster multicasts an event to all added listeners with custom arguments until the event is consumed.

A multicaster that implements this interface allows for consumable events. This means that the event dispatch is stopped as soon as an event is consumed.

An event is consumed if a listener's event method returns true. If it returns nothing, null or undefined or false the event will further be dispatched.

Method Index

Inherited from EventMulticaster

dispatch()

Inherited from EventListenerSource

addAllListeners(), addListener(), getAllListeners(), hasListener(), removeAllListeners(), removeListener()

Inherited from BasicInterface

toString()