public interface RemoteBundle<InputT>
extends java.lang.AutoCloseable
bundle descriptor
by
forwarding them to a remote environment for processing.
When a RemoteBundle is closed, it will block until bundle processing is finished on remote resources, and throw an exception if bundle processing has failed.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this bundle.
|
java.lang.String |
getId()
Get an id used to represent this bundle.
|
FnDataReceiver<org.apache.beam.sdk.util.WindowedValue<InputT>> |
getInputReceiver()
Get a
receiver which consumes input elements, forwarding them to the
remote environment. |
java.lang.String getId()
FnDataReceiver<org.apache.beam.sdk.util.WindowedValue<InputT>> getInputReceiver()
receiver
which consumes input elements, forwarding them to the
remote environment.void close() throws java.lang.Exception
FnDataReceiver
to be closed (future calls to
that FnDataReceiver
will throw an exception), and causes the RemoteBundle
to
produce any buffered outputs. The call to close()
will block until all of the outputs
produced by this bundle have been received.close
in interface java.lang.AutoCloseable
java.lang.Exception