com.neeve.event
Class EventMultiplexerPassThrough

java.lang.Object
  extended by com.neeve.root.RootObject
      extended by com.neeve.event.EventObject
          extended by com.neeve.event.EventMultiplexer
              extended by com.neeve.event.EventMultiplexerPassThrough
All Implemented Interfaces:
IEventHandler, IEventMultiplexer

public final class EventMultiplexerPassThrough
extends EventMultiplexer

Pass through event multiplexer.

In a pass through multiplexer, the threads carrying the events from the sources pass directly and concurrently through the multiplexer. It should be noted that a fundamental tenet of a multiplexer is that the registered event handler cannot be concurrently invoked. Therefore, implicit in the semantic of this multiplexer implementation is the assumption that the caller will not be concurrently multiplexing events through the multiplexer.

Threading:
This class is safe for concurrent access by multiple threads.

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.neeve.event.IEventMultiplexer
IEventMultiplexer.State
 
Field Summary
 
Fields inherited from class com.neeve.event.EventMultiplexer
captureEventLatencyStats
 
Fields inherited from interface com.neeve.event.IEventMultiplexer
NON_BLOCKING
 
Method Summary
static IEventMultiplexer create(String name, boolean administrative, IEventHandler eventHandler, Properties props)
          Create a pass through event multiplexer.
 IEventMultiplexerStats getStats()
          Implementation of IEventMultiplexer.getStats()
 
Methods inherited from class com.neeve.event.EventMultiplexer
close, getName, multiplexEvent, onEvent, onEvent, open, scheduledEventCount, scheduleEvent, setAllEventDispatch, unscheduleEvent
 
Methods inherited from class com.neeve.root.RootObject
getChecked, getThreaded, getTracer, setChecked, setTracer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static IEventMultiplexer create(String name,
                                       boolean administrative,
                                       IEventHandler eventHandler,
                                       Properties props)
Create a pass through event multiplexer.

Parameters:
name - The event multiplexer's name
administrative - Whether this multiplexer is an administrative one i.e. not subject to auto performance tuning.
eventHandler - The dispatch event handler i.e. the event handler through which multiplexed events are dispatched.
props - A set of properties that qualify the behavior multiplexer behavior. The pass through multiplexer does not currently support any properties for its use.

getStats

public final IEventMultiplexerStats getStats()
Implementation of IEventMultiplexer.getStats()



Copyright © 2016 Neeve Research, LLC. All Rights Reserved.