public final class TestEventStream extends Object implements EventStream
Modifier and Type | Method and Description |
---|---|
void |
onEvent(EventType type,
String jsonEncodedEvent)
Write an eventRecord with specific type.
|
void |
validate()
This validation is called in WatcherTestDriver#RuntimeStopHandler, so RuntimeStop should not be guaranteed
to be called before this.
|
public void onEvent(EventType type, String jsonEncodedEvent)
EventStream
onEvent
in interface EventStream
type
- a event typejsonEncodedEvent
- an event encoded as jsonpublic void validate()
Copyright © 2017 The Apache Software Foundation. All rights reserved.