repeat

fun <T> Observable<T>.repeat(times: Long = Long.MAX_VALUE): Observable<T>

Returns an Observable that repeats the sequence of this Observable at most times times.

Please refer to the corresponding RxJava document.