@ProviderType
public interface CommandHandler
CommandHandler is the mechanism through which a CommandStream can be processed synchronously, as the stream is
 written.| Modifier and Type | Method and Description | 
|---|---|
void | 
onDone()
This method is called when the stream has been closed. 
 | 
void | 
onEmit(Command command)
Allows this handler to process the  
Command that was just written into the stream to which this handler was attached. | 
void | 
onError(java.lang.String errorMessage)
Allows this handler to process error states. 
 | 
void onEmit(Command command)
Command that was just written into the stream to which this handler was attached.command - the received commandvoid onError(java.lang.String errorMessage)
errorMessage - the error's messagevoid onDone()
Copyright © 2022 The Apache Software Foundation. All rights reserved.