abstract class JavaAsyncDoFn[InputT, OutputT, ResourceT] extends BaseAsyncDoFn[InputT, OutputT, ResourceT, CompletableFuture[OutputT]] with Java[OutputT]

A DoFn that handles asynchronous requests to an external service that returns Java 8 CompletableFutures.

Source
JavaAsyncDoFn.java
Linear Supertypes
Java[OutputT], BaseAsyncDoFn[InputT, OutputT, ResourceT, CompletableFuture[OutputT]], Base[CompletableFuture[OutputT], OutputT], DoFnWithResource[InputT, OutputT, ResourceT], DoFn[InputT, OutputT], HasDisplayData, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaAsyncDoFn
  2. Java
  3. BaseAsyncDoFn
  4. Base
  5. DoFnWithResource
  6. DoFn
  7. HasDisplayData
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JavaAsyncDoFn()

Type Members

  1. abstract class FinishBundleContext extends AnyRef
    Definition Classes
    DoFn
  2. abstract class OnTimerContext extends WindowedContext
    Definition Classes
    DoFn
  3. abstract class OnWindowExpirationContext extends WindowedContext
    Definition Classes
    DoFn
  4. abstract class ProcessContext extends WindowedContext
    Definition Classes
    DoFn
  5. abstract class StartBundleContext extends AnyRef
    Definition Classes
    DoFn
  6. abstract class WindowedContext extends AnyRef
    Definition Classes
    DoFn

Abstract Value Members

  1. abstract def createResource(): ResourceT

    Create resource.

    Create resource.

    DoFnWithResource#getResourceType() determines how many times this is called.

    Definition Classes
    DoFnWithResource
  2. abstract def getResourceType(): ResourceType

    Get resource type.

    Get resource type.

    Definition Classes
    DoFnWithResource
  3. abstract def processElement(input: InputT): CompletableFuture[OutputT]

    Process an element asynchronously.

    Process an element asynchronously.

    Definition Classes
    BaseAsyncDoFn
  4. abstract object FinishBundleContext
    Definition Classes
    DoFn
  5. abstract object ProcessContext
    Definition Classes
    DoFn
  6. abstract object StartBundleContext
    Definition Classes
    DoFn
  7. abstract object WindowedContext
    Definition Classes
    DoFn

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCallback(future: CompletableFuture[OutputT], onSuccess: Function[OutputT, Void], onFailure: Function[Throwable, Void]): CompletableFuture[OutputT]
    Definition Classes
    Java → Base
    Annotations
    @Override()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def closeResource(resource: ResourceT): Unit

    Close resource.

    Close resource.

    Default implementation closes AutoCloseable resource.

    Definition Classes
    DoFnWithResource
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def finishBundle(context: FinishBundleContext): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @FinishBundle()
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getInputTypeDescriptor(): TypeDescriptor[InputT]
    Definition Classes
    DoFn
  14. def getOutputTypeDescriptor(): TypeDescriptor[OutputT]
    Definition Classes
    DoFn
  15. def getResource(): ResourceT

    Get managed resource.

    Get managed resource.

    Definition Classes
    DoFnWithResource
    Annotations
    @SuppressWarnings()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def populateDisplayData(builder: Builder): Unit
    Definition Classes
    DoFnWithResource → DoFn → HasDisplayData
    Annotations
    @Override()
  22. def processElement(element: InputT, timestamp: Instant, window: BoundedWindow, pane: PaneInfo, out: OutputReceiver[OutputT]): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @ProcessElement()
  23. def setup(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Setup()
  24. def startBundle(context: StartBundleContext): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @StartBundle()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def teardown(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Teardown()
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. def waitForFutures(futures: Iterable[CompletableFuture[OutputT]]): Unit
    Definition Classes
    Java → Base
    Annotations
    @Override()

Deprecated Value Members

  1. def getAllowedTimestampSkew(): Duration
    Definition Classes
    DoFn
    Annotations
    @Deprecated
    Deprecated
  2. final def prepareForProcessing(): Unit
    Definition Classes
    DoFn
    Annotations
    @Deprecated
    Deprecated
  3. def processElement(input: InputT, timestamp: Instant, out: OutputReceiver[OutputT], window: BoundedWindow): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @Deprecated
    Deprecated

Inherited from Java[OutputT]

Inherited from BaseAsyncDoFn[InputT, OutputT, ResourceT, CompletableFuture[OutputT]]

Inherited from Base[CompletableFuture[OutputT], OutputT]

Inherited from DoFnWithResource[InputT, OutputT, ResourceT]

Inherited from DoFn[InputT, OutputT]

Inherited from HasDisplayData

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped