public interface StreamingEventListener
限定符和类型 | 方法和说明 |
---|---|
void |
onComplete()
Called when the stream is completed
|
void |
onError(java.lang.Exception exception)
Called when an error occurs during streaming
|
void |
onEvent(java.lang.Object event)
Called when a streaming event is received
|
void onEvent(java.lang.Object event)
event
- the event object (could be TaskStatusUpdateEvent or TaskArtifactUpdateEvent)void onError(java.lang.Exception exception)
exception
- the exception that occurredvoid onComplete()