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
CompletableFuture
s.
- Source
- JavaAsyncDoFn.java
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JavaAsyncDoFn
- Java
- BaseAsyncDoFn
- Base
- DoFnWithResource
- DoFn
- HasDisplayData
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new JavaAsyncDoFn()
Type Members
- abstract class FinishBundleContext extends AnyRef
- Definition Classes
- DoFn
- abstract class OnTimerContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class OnWindowExpirationContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class ProcessContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class StartBundleContext extends AnyRef
- Definition Classes
- DoFn
- abstract class WindowedContext extends AnyRef
- Definition Classes
- DoFn
Abstract Value Members
- abstract def createResource(): ResourceT
Create resource.
Create resource.
DoFnWithResource#getResourceType()
determines how many times this is called.- Definition Classes
- DoFnWithResource
- abstract def getResourceType(): ResourceType
Get resource type.
Get resource type.
- Definition Classes
- DoFnWithResource
- abstract def processElement(input: InputT): CompletableFuture[OutputT]
Process an element asynchronously.
Process an element asynchronously.
- Definition Classes
- BaseAsyncDoFn
- abstract object FinishBundleContext
- Definition Classes
- DoFn
- abstract object ProcessContext
- Definition Classes
- DoFn
- abstract object StartBundleContext
- Definition Classes
- DoFn
- abstract object WindowedContext
- Definition Classes
- DoFn
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCallback(future: CompletableFuture[OutputT], onSuccess: Function[OutputT, Void], onFailure: Function[Throwable, Void]): CompletableFuture[OutputT]
- Definition Classes
- Java → Base
- Annotations
- @Override()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closeResource(resource: ResourceT): Unit
Close resource.
Close resource.
Default implementation closes
AutoCloseable
resource.- Definition Classes
- DoFnWithResource
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finishBundle(context: FinishBundleContext): Unit
- Definition Classes
- BaseAsyncDoFn
- Annotations
- @FinishBundle()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInputTypeDescriptor(): TypeDescriptor[InputT]
- Definition Classes
- DoFn
- def getOutputTypeDescriptor(): TypeDescriptor[OutputT]
- Definition Classes
- DoFn
- def getResource(): ResourceT
Get managed resource.
Get managed resource.
- Definition Classes
- DoFnWithResource
- Annotations
- @SuppressWarnings()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def populateDisplayData(builder: Builder): Unit
- Definition Classes
- DoFnWithResource → DoFn → HasDisplayData
- Annotations
- @Override()
- def processElement(element: InputT, timestamp: Instant, window: BoundedWindow, pane: PaneInfo, out: OutputReceiver[OutputT]): Unit
- Definition Classes
- BaseAsyncDoFn
- Annotations
- @ProcessElement()
- def setup(): Unit
- Definition Classes
- DoFnWithResource
- Annotations
- @Setup()
- def startBundle(context: StartBundleContext): Unit
- Definition Classes
- BaseAsyncDoFn
- Annotations
- @StartBundle()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def teardown(): Unit
- Definition Classes
- DoFnWithResource
- Annotations
- @Teardown()
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def waitForFutures(futures: Iterable[CompletableFuture[OutputT]]): Unit
- Definition Classes
- Java → Base
- Annotations
- @Override()
Deprecated Value Members
- def getAllowedTimestampSkew(): Duration
- Definition Classes
- DoFn
- Annotations
- @Deprecated
- Deprecated
- final def prepareForProcessing(): Unit
- Definition Classes
- DoFn
- Annotations
- @Deprecated
- Deprecated
- def processElement(input: InputT, timestamp: Instant, out: OutputReceiver[OutputT], window: BoundedWindow): Unit
- Definition Classes
- BaseAsyncDoFn
- Annotations
- @Deprecated
- Deprecated