public class BeamFnDataTimeBasedBufferingOutboundObserver<T> extends BeamFnDataSizeBasedBufferingOutboundObserver<T>
FnDataReceiver with both size-based buffer and time-based buffer
enabled for the Beam Fn Data API.BEAM_FN_API_DATA_BUFFER_LIMIT, BEAM_FN_API_DATA_BUFFER_SIZE_LIMIT, BEAM_FN_API_DATA_BUFFER_TIME_LIMIT, DEFAULT_BUFFER_LIMIT_BYTES, DEFAULT_BUFFER_LIMIT_TIME_MS| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t) |
void |
close()
.
|
void |
flush()
Eagerly flushes any data that is buffered in this channel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforLocation, getSizeLimit, getTimeLimitpublic void close()
throws java.lang.Exception
CloseableFnDataReceiverDoes nothing if this CloseableFnDataReceiver is already closed.
close in interface java.lang.AutoCloseableclose in interface CloseableFnDataReceiver<T>close in class BeamFnDataSizeBasedBufferingOutboundObserver<T>java.lang.Exceptionpublic void flush()
throws java.io.IOException
CloseableFnDataReceiverflush in interface CloseableFnDataReceiver<T>flush in class BeamFnDataSizeBasedBufferingOutboundObserver<T>java.io.IOExceptionpublic void accept(T t) throws java.io.IOException
accept in interface FnDataReceiver<T>accept in class BeamFnDataSizeBasedBufferingOutboundObserver<T>java.io.IOException