Advanced deferred callback management is provided through the use of deferred event concentrators and deferred event splitters. These implement the DeferredConcentrator and DeferredSplitter interfaces respectively. The reactor core acts as a factory for components implementing these interfaces and the standard reactor interface provides the factory functions shown in Listing 7.1.
The newDeferredConcentrator factory method will return an object which implements the DeferredConcentrator interface as shown in Listing 7.2. Similarly, the newDeferredSplitter factory method will return an object which implements the DeferredSplitter interface as shown in Listing 7.3.
In the case of both the concentrator and splitter interfaces there is an addInputDeferred method for attaching deferred event inputs as well as a getOutputDeferred method for obtaining a handle on an output deferred event object. However, there are obvious functional differences between the implementation of these calls for concentrator and splitter components.