An input stream is created with any user-implemented receiver. It is customizable:
More details can be found at http://spark.apache.org/docs/latest/streaming-custom-receivers.html:
API declaration for receiverStream:
def receiverStream[T]: ClassTag](receiver: Receiver[T]):
ReceiverInputDStream[T]