Packages

class GrpcDoFn[RequestT, ResponseT, ClientT <: AbstractStub[ClientT]] extends GuavaAsyncLookupDoFn[RequestT, ResponseT, ClientT]

DoFn that makes API calls over a managed GRPC channel.

Source
GrpcDoFn.java
Linear Supertypes
GuavaAsyncLookupDoFn[RequestT, ResponseT, ClientT], Guava[ResponseT], BaseAsyncLookupDoFn[RequestT, ResponseT, ClientT, ListenableFuture[ResponseT], Try[ResponseT]], Base[ListenableFuture[ResponseT], ResponseT], DoFnWithResource[RequestT, KV[RequestT, Try[ResponseT]], Pair[ClientT, Cache[RequestT, ResponseT]]], DoFn[RequestT, KV[RequestT, Try[ResponseT]]], HasDisplayData, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GrpcDoFn
  2. GuavaAsyncLookupDoFn
  3. Guava
  4. BaseAsyncLookupDoFn
  5. Base
  6. DoFnWithResource
  7. DoFn
  8. HasDisplayData
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 object FinishBundleContext
    Definition Classes
    DoFn
  2. abstract object ProcessContext
    Definition Classes
    DoFn
  3. abstract object StartBundleContext
    Definition Classes
    DoFn
  4. 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: ListenableFuture[ResponseT], onSuccess: Function[ResponseT, Void], onFailure: Function[Throwable, Void]): ListenableFuture[ResponseT]
    Definition Classes
    Guava → Base
    Annotations
    @Override()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asyncLookup(client: ClientT, request: RequestT): ListenableFuture[ResponseT]

    Perform asynchronous lookup.

    Perform asynchronous lookup.

    Definition Classes
    GrpcDoFnBaseAsyncLookupDoFn
    Annotations
    @Override()
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def closeResource(resource: Pair[ClientT, Cache[RequestT, ResponseT]]): Unit

    Close resource.

    Close resource.

    Default implementation closes AutoCloseable resource.

    Definition Classes
    BaseAsyncLookupDoFnDoFnWithResource
    Annotations
    @Override()
  9. def createResource(): Pair[ClientT, Cache[RequestT, ResponseT]]

    Create resource.

    Create resource.

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

    Definition Classes
    BaseAsyncLookupDoFnDoFnWithResource
    Annotations
    @Override()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def failure(throwable: Throwable): Try[ResponseT]

    Wrap output in a failed Try.

    Wrap output in a failed Try.

    Definition Classes
    GrpcDoFnGuavaAsyncLookupDoFnBaseAsyncLookupDoFn
    Annotations
    @Override()
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def finishBundle(context: FinishBundleContext): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @FinishBundle()
  15. def getCallbackExecutor(): Executor

    Executor used for callbacks.

    Executor used for callbacks. Default is ForkJoinPool#commonPool(). Consider overriding this method if callbacks are blocking.

    returns

    Executor for callbacks.

    Definition Classes
    Guava
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getInputTypeDescriptor(): TypeDescriptor[RequestT]
    Definition Classes
    DoFn
  18. def getOutputTypeDescriptor(): TypeDescriptor[KV[RequestT, Try[ResponseT]]]
    Definition Classes
    DoFn
  19. def getResource(): Pair[ClientT, Cache[RequestT, ResponseT]]

    Get managed resource.

    Get managed resource.

    Definition Classes
    DoFnWithResource
    Annotations
    @SuppressWarnings()
  20. def getResourceCache(): Cache[RequestT, ResponseT]
    Definition Classes
    BaseAsyncLookupDoFn
  21. def getResourceClient(): ClientT
    Definition Classes
    BaseAsyncLookupDoFn
  22. def getResourceType(): ResourceType

    Get resource type.

    Get resource type.

    Definition Classes
    GrpcDoFnDoFnWithResource
    Annotations
    @Override()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def newClient(): ClientT

    Creates the client.

    Creates the client.

    Attributes
    protected[grpc]
    Definition Classes
    GrpcDoFnBaseAsyncLookupDoFn
    Annotations
    @Override()
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def populateDisplayData(builder: Builder): Unit
    Definition Classes
    DoFnWithResource → DoFn → HasDisplayData
    Annotations
    @Override()
  30. def processElement(input: RequestT, timestamp: Instant, window: BoundedWindow, pane: PaneInfo, out: OutputReceiver[KV[RequestT, Try[ResponseT]]]): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @SuppressWarnings() @ProcessElement()
  31. def setup(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Setup()
  32. def startBundle(context: StartBundleContext): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @StartBundle()
  33. def success(output: ResponseT): Try[ResponseT]

    Wrap output in a successful Try.

    Wrap output in a successful Try.

    Definition Classes
    GuavaAsyncLookupDoFnBaseAsyncLookupDoFn
    Annotations
    @Override()
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def teardown(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Teardown()
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  40. def waitForFutures(futures: Iterable[ListenableFuture[ResponseT]]): Unit
    Definition Classes
    Guava → 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: RequestT, timestamp: Instant, out: OutputReceiver[KV[RequestT, Try[ResponseT]]], window: BoundedWindow): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @Deprecated
    Deprecated

Inherited from GuavaAsyncLookupDoFn[RequestT, ResponseT, ClientT]

Inherited from Guava[ResponseT]

Inherited from BaseAsyncLookupDoFn[RequestT, ResponseT, ClientT, ListenableFuture[ResponseT], Try[ResponseT]]

Inherited from Base[ListenableFuture[ResponseT], ResponseT]

Inherited from DoFnWithResource[RequestT, KV[RequestT, Try[ResponseT]], Pair[ClientT, Cache[RequestT, ResponseT]]]

Inherited from DoFn[RequestT, KV[RequestT, Try[ResponseT]]]

Inherited from HasDisplayData

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped