Package org.apache.beam.sdk.fn.data
Interface CloseableFnDataReceiver<T>
-
- All Superinterfaces:
java.lang.AutoCloseable,FnDataReceiver<T>
- All Known Implementing Classes:
BeamFnDataInboundObserver2,BeamFnDataOutboundObserver
public interface CloseableFnDataReceiver<T> extends FnDataReceiver<T>, java.lang.AutoCloseable
A receiver of streamed data that can be closed.The close method for a
CloseableFnDataReceivermust be idempotent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclose().voidflush()Deprecated.to be removed once splitting/checkpointing are available in SDKs and rewinding in readers.-
Methods inherited from interface org.apache.beam.sdk.fn.data.FnDataReceiver
accept
-
-
-
-
Method Detail
-
flush
@Deprecated void flush() throws java.lang.ExceptionDeprecated.to be removed once splitting/checkpointing are available in SDKs and rewinding in readers.Eagerly flushes any data that is buffered in this channel.- Throws:
java.lang.Exception
-
close
void close() throws java.lang.Exception.Does nothing if this
CloseableFnDataReceiveris already closed.- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-