E - the type of stream elementspublic class LoggingListener<E> extends StreamListenerAdapter implements Generator<E,E>
Generator that acts as a StreamListener for throughput logging purposes.| Constructor and Description |
|---|
LoggingListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose()
Invoked then stream is closed.
|
void |
onStart()
Invoked after the first element of the target
Stream has been iterated over. |
E |
yield(E element)
|
onEndpublic void onStart()
Stream has been iterated over.onStart in interface StreamListeneronStart in class StreamListenerAdapterpublic void onClose()
onClose in interface StreamListeneronClose in class StreamListenerAdapterCopyright © 2019. All Rights Reserved.