public class ReceiverBuilder<X,T extends org.apache.spark.streaming.receiver.Receiver<X>>
extends java.lang.Object
implements java.io.Serializable
Receiver
that uses Apache Beam mechanisms instead of
Spark environment.Constructor and Description |
---|
ReceiverBuilder(java.lang.Class<T> sparkReceiverClass) |
Modifier and Type | Method and Description |
---|---|
T |
build() |
java.lang.Class<T> |
getSparkReceiverClass() |
ReceiverBuilder<X,T> |
withConstructorArgs(java.lang.Object... args)
Method for specifying constructor arguments for corresponding
sparkReceiverClass . |
public ReceiverBuilder(java.lang.Class<T> sparkReceiverClass)
public ReceiverBuilder<X,T> withConstructorArgs(java.lang.Object... args)
sparkReceiverClass
.public T build() throws java.lang.reflect.InvocationTargetException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Class<T> getSparkReceiverClass()