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, isClosed, toString@Inject public SyncStage(EventHandler<T> handler)
handler - the event handler@Inject public SyncStage(String name, EventHandler<T> handler)
name - the stage namehandler - the event handler@Inject public SyncStage(String name, EventHandler<T> handler, EventHandler<Throwable> errorHandler)
name - the stage namehandler - the event handlererrorHandler - the error handlerCopyright © 2017 The Apache Software Foundation. All rights reserved.