T
- typepublic final class SyncStage<T> extends AbstractEStage<T>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes resources.
|
void |
onNext(T value)
Invokes the handler for the event.
|
getInMeter, getOutMeter
@Inject public SyncStage(EventHandler<T> handler)
handler
- the event handler@Inject public SyncStage(String name, EventHandler<T> handler)
handler
- the event handler@Inject public SyncStage(String name, EventHandler<T> handler, EventHandler<Throwable> errorHandler)
handler
- the event handlererrorHandler
- the error handlerCopyright © 2015 The Apache Software Foundation. All rights reserved.