added bulk operations into StreamInterface

This commit is contained in:
Dmitry Toptygin
2020-06-03 11:30:55 -04:00
parent da8ec8f914
commit 1730ffdcbf

View File

@@ -1,11 +1,20 @@
package com.telecominfraproject.wlan.stream;
import java.util.List;
/**
* @author ekeddy
* @author dtop
*
*/
public interface StreamInterface<T> {
void publish(T record);
default void publish(List<T> records) {
if(records!=null) {
records.forEach(r -> publish(r));
}
}
}