| Modifier and Type | Interface and Description |
|---|---|
interface |
EStage<T>
Stage that executes an event handler
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEStage<T>
An
EStage that implements metering |
| Constructor and Description |
|---|
Pull2Push(EventHandler<T> output) |
| Modifier and Type | Class and Description |
|---|---|
class |
BlockingEventHandler<T>
An EventHandler that blocks until a set number of Events has been received.
|
class |
BlockingSignalEventHandler<T>
An EventHandler that blocks until a set number of Events has been received.
|
class |
ForkPoolStage<T>
This Wake event handling stage uses a
ForkJoinPool
to submit tasks. |
class |
IndependentIterationsThreadPoolStage<T>
This stage uses a thread pool to schedule events in parallel.
|
class |
LoggingEventHandler<T>
A logging event handler
|
class |
LoggingVoidEventHandler
A logging void event handler
|
class |
MissingStartHandlerHandler
The EventHandler used as the default for the Clock.StartHandler event.
|
class |
MultiEventHandler<T>
Event handler that dispatches an event to a specific handler based on an event class type
|
class |
PubSubEventHandler<T>
Event handler that provides publish/subscribe interfaces
|
class |
SingleThreadStage<T>
Single thread stage that runs the event handler
|
class |
SyncStage<T>
Stage that synchronously executes an event handler
|
class |
ThreadPoolStage<T>
Stage that executes an event handler with a thread pool
|
| Modifier and Type | Field and Description |
|---|---|
EventHandler<L> |
MergingEventHandler.left |
EventHandler<R> |
MergingEventHandler.right |
| Modifier and Type | Method and Description |
|---|---|
void |
WakeUncaughtExceptionHandler.setErrorHandler(EventHandler<Throwable> errorHandler) |
void |
PubSubEventHandler.subscribe(Class<? extends T> clazz,
EventHandler<? extends T> handler)
Subscribes an event handler for an event class type
|
| Constructor and Description |
|---|
BlockingEventHandler(int expectedSize,
EventHandler<Iterable<T>> destination) |
BlockingSignalEventHandler(int expectedSize,
EventHandler<T> destination) |
ForkPoolStage(EventHandler<T> handler,
WakeSharedPool sharedPool) |
ForkPoolStage(String stageName,
EventHandler<T> handler,
WakeSharedPool sharedPool) |
IndependentIterationsThreadPoolStage(EventHandler<T> handler,
int numThreads,
int granularity) |
MergingEventHandler(EventHandler<MergingEventHandler.Pair<L,R>> destination) |
SingleThreadStage(EventHandler<T> handler,
int capacity)
Constructs a single thread stage
|
SingleThreadStage(String name,
EventHandler<T> handler,
int capacity)
Constructs a single thread stage
|
SyncStage(EventHandler<T> handler)
Constructs a synchronous stage
|
SyncStage(String name,
EventHandler<T> handler)
Constructs a synchronous stage
|
SyncStage(String name,
EventHandler<T> handler,
EventHandler<Throwable> errorHandler)
Constructs a synchronous stage
|
SyncStage(String name,
EventHandler<T> handler,
EventHandler<Throwable> errorHandler)
Constructs a synchronous stage
|
ThreadPoolStage(EventHandler<T> handler,
ExecutorService executor)
Constructs a thread-pool stage
|
ThreadPoolStage(EventHandler<T> handler,
ExecutorService executor,
EventHandler<Throwable> errorHandler)
Constructs a thread-pool stage
|
ThreadPoolStage(EventHandler<T> handler,
ExecutorService executor,
EventHandler<Throwable> errorHandler)
Constructs a thread-pool stage
|
ThreadPoolStage(EventHandler<T> handler,
int numThreads)
Constructs a thread-pool stage
|
ThreadPoolStage(String name,
EventHandler<T> handler,
ExecutorService executor)
Constructs a thread-pool stage
|
ThreadPoolStage(String name,
EventHandler<T> handler,
ExecutorService executor,
EventHandler<Throwable> errorHandler)
Constructs a thread-pool stage
|
ThreadPoolStage(String name,
EventHandler<T> handler,
ExecutorService executor,
EventHandler<Throwable> errorHandler)
Constructs a thread-pool stage
|
ThreadPoolStage(String name,
EventHandler<T> handler,
int numThreads)
Constructs a thread-pool stage
|
ThreadPoolStage(String name,
EventHandler<T> handler,
int numThreads,
EventHandler<Throwable> errorHandler)
Constructs a thread-pool stage
|
ThreadPoolStage(String name,
EventHandler<T> handler,
int numThreads,
EventHandler<Throwable> errorHandler)
Constructs a thread-pool stage
|
TimerStage(EventHandler<PeriodicEvent> handler,
long period)
Constructs a timer stage with no initial delay
|
TimerStage(EventHandler<PeriodicEvent> handler,
long initialDelay,
long period)
Constructs a timer stage
|
TimerStage(String name,
EventHandler<PeriodicEvent> handler,
long period)
Constructs a timer stage with no initial delay
|
TimerStage(String name,
EventHandler<PeriodicEvent> handler,
long initialDelay,
long period)
Constructs a timer stage
|
WakeUncaughtExceptionHandler(EventHandler<Throwable> errorHandler) |
| Constructor and Description |
|---|
MultiEventHandler(Map<Class<? extends T>,EventHandler<? extends T>> map)
Constructs a multi-event handler
|
PubSubEventHandler(Map<Class<? extends T>,List<EventHandler<? extends T>>> clazzToListOfHandlersMap)
Constructs a pub-sub event handler with initial subscribed event handlers
|
| Modifier and Type | Method and Description |
|---|---|
<T> EventHandler<T> |
RemoteManager.getHandler(RemoteIdentifier destinationIdentifier,
Class<? extends T> messageType)
Returns an event handler that can be used to send messages of type T to the
given destination.
|
| Modifier and Type | Method and Description |
|---|---|
AutoCloseable |
RemoteManager.registerErrorHandler(EventHandler<Exception> theHandler)
Deprecated.
|
<T,U extends T> |
RemoteManager.registerHandler(Class<U> messageType,
EventHandler<RemoteMessage<T>> theHandler)
Registers the given EventHandler to be called for the given message type
from any source.
|
<T,U extends T> |
RemoteManager.registerHandler(RemoteIdentifier sourceIdentifier,
Class<U> messageType,
EventHandler<T> theHandler)
Registers the given EventHandler to be invoked when messages of Type T
arrive from sourceIdentifier.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OrderedRemoteReceiverStage
Receive incoming events and dispatch to correct handlers in order
|
class |
ProxyEventHandler<T>
Proxy of the event handler that runs remotely
|
class |
RemoteReceiverStage
Receive incoming events and dispatch to correct handlers
|
| Modifier and Type | Method and Description |
|---|---|
<T> EventHandler<RemoteEvent<T>> |
RemoteSenderStage.getHandler()
Returns a new remote sender event handler
|
<T> EventHandler<T> |
DefaultRemoteManagerImplementation.getHandler(RemoteIdentifier destinationIdentifier,
Class<? extends T> messageType)
Returns a proxy event handler for a remote identifier and a message type
|
| Modifier and Type | Method and Description |
|---|---|
AutoCloseable |
DefaultRemoteManagerImplementation.registerErrorHandler(EventHandler<Exception> theHandler)
Registers an exception handler and returns a subscription
|
<T,U extends T> |
DefaultRemoteManagerImplementation.registerHandler(Class<U> messageType,
EventHandler<RemoteMessage<T>> theHandler)
Registers an event handler for a message type and returns a subscription
|
<T,U extends T> |
DefaultRemoteManagerImplementation.registerHandler(RemoteIdentifier sourceIdentifier,
Class<U> messageType,
EventHandler<T> theHandler)
Registers an event handler for a remote identifier and a message type and
returns a subscription
|
| Constructor and Description |
|---|
ConnectFutureTask(Callable<T> callable,
EventHandler<ConnectFutureTask<T>> handler) |
DefaultRemoteManagerImplementation(String name,
String hostAddress,
int listeningPort,
Codec<T> codec,
EventHandler<Throwable> errorHandler,
boolean orderingGuarantee,
int numberOfTries,
int retryTimeout)
Deprecated.
have an instance injected instead.
|
DefaultRemoteManagerImplementation(String name,
String hostAddress,
int listeningPort,
Codec<T> codec,
EventHandler<Throwable> errorHandler,
boolean orderingGuarantee,
int numberOfTries,
int retryTimeout,
LocalAddressProvider localAddressProvider,
TcpPortProvider tcpPortProvider)
Deprecated.
have an instance injected instead.
|
OrderedRemoteReceiverStage(EventHandler<RemoteEvent<byte[]>> handler,
EventHandler<Throwable> errorHandler)
Constructs a ordered remote receiver stage
|
OrderedRemoteReceiverStage(EventHandler<RemoteEvent<byte[]>> handler,
EventHandler<Throwable> errorHandler)
Constructs a ordered remote receiver stage
|
ProxyEventHandler(RemoteIdentifier myId,
RemoteIdentifier remoteId,
String remoteSinkName,
EventHandler<RemoteEvent<T>> handler,
RemoteSeqNumGenerator seqGen)
Constructs a proxy event handler
|
RemoteReceiverStage(EventHandler<RemoteEvent<byte[]>> handler,
EventHandler<Throwable> errorHandler,
int numThreads)
Constructs a remote receiver stage
|
RemoteReceiverStage(EventHandler<RemoteEvent<byte[]>> handler,
EventHandler<Throwable> errorHandler,
int numThreads)
Constructs a remote receiver stage
|
| Modifier and Type | Method and Description |
|---|---|
void |
Transport.registerErrorHandler(EventHandler<Exception> handler)
Registers the exception handler
|
| Modifier and Type | Method and Description |
|---|---|
void |
NettyMessagingTransport.registerErrorHandler(EventHandler<Exception> handler)
Registers the exception event handler
|
| Modifier and Type | Class and Description |
|---|---|
class |
SequentialFileReader |
| Modifier and Type | Method and Description |
|---|---|
void |
Clock.scheduleAlarm(int offset,
EventHandler<Alarm> handler)
Schedule a TimerEvent at the given future offset
|
| Constructor and Description |
|---|
Alarm(long timestamp,
EventHandler<Alarm> handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
RuntimeClock.registerEventHandler(Class<? extends Time> clazz,
EventHandler<Time> handler) |
void |
RuntimeClock.scheduleAlarm(int offset,
EventHandler<Alarm> handler) |
void |
RuntimeClock.scheduleRuntimeAlarm(int offset,
EventHandler<Alarm> handler) |
| Constructor and Description |
|---|
ClientAlarm(long timestamp,
EventHandler<Alarm> handler) |
RuntimeAlarm(long timestamp,
EventHandler<Alarm> handler) |
Copyright © 2015 The Apache Software Foundation. All rights reserved.