2323import rx .Producer ;
2424import rx .Subscriber ;
2525import rx .Subscription ;
26+ import rx .annotations .Beta ;
2627import rx .annotations .Experimental ;
2728import rx .exceptions .Exceptions ;
2829import rx .functions .Action0 ;
4647 * @param <T>
4748 * the type of {@code Subscribers} that will be compatible with {@code this}.
4849 */
49- @ Experimental
50+ @ Beta
5051public abstract class SyncOnSubscribe <S , T > implements OnSubscribe <T > {
5152
5253 /* (non-Javadoc)
@@ -126,7 +127,7 @@ protected void onUnsubscribe(S state) {
126127 * next(S, Subscriber)})
127128 * @return a SyncOnSubscribe that emits data in a protocol compatible with back-pressure.
128129 */
129- @ Experimental
130+ @ Beta
130131 public static <S , T > SyncOnSubscribe <S , T > createSingleState (Func0 <? extends S > generator ,
131132 final Action2 <? super S , ? super Observer <? super T >> next ) {
132133 Func2 <S , ? super Observer <? super T >, S > nextFunc = new Func2 <S , Observer <? super T >, S >() {
@@ -155,7 +156,7 @@ public S call(S state, Observer<? super T> subscriber) {
155156 * @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
156157 * back-pressure.
157158 */
158- @ Experimental
159+ @ Beta
159160 public static <S , T > SyncOnSubscribe <S , T > createSingleState (Func0 <? extends S > generator ,
160161 final Action2 <? super S , ? super Observer <? super T >> next ,
161162 final Action1 <? super S > onUnsubscribe ) {
@@ -183,7 +184,7 @@ public S call(S state, Observer<? super T> subscriber) {
183184 * @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
184185 * back-pressure.
185186 */
186- @ Experimental
187+ @ Beta
187188 public static <S , T > SyncOnSubscribe <S , T > createStateful (Func0 <? extends S > generator ,
188189 Func2 <? super S , ? super Observer <? super T >, ? extends S > next ,
189190 Action1 <? super S > onUnsubscribe ) {
@@ -202,7 +203,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
202203 * @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
203204 * back-pressure.
204205 */
205- @ Experimental
206+ @ Beta
206207 public static <S , T > SyncOnSubscribe <S , T > createStateful (Func0 <? extends S > generator ,
207208 Func2 <? super S , ? super Observer <? super T >, ? extends S > next ) {
208209 return new SyncOnSubscribeImpl <S , T >(generator , next );
@@ -221,7 +222,7 @@ public static <S, T> SyncOnSubscribe<S, T> createStateful(Func0<? extends S> gen
221222 * @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
222223 * back-pressure.
223224 */
224- @ Experimental
225+ @ Beta
225226 public static <T > SyncOnSubscribe <Void , T > createStateless (final Action1 <? super Observer <? super T >> next ) {
226227 Func2 <Void , Observer <? super T >, Void > nextFunc = new Func2 <Void , Observer <? super T >, Void >() {
227228 @ Override
@@ -248,7 +249,7 @@ public Void call(Void state, Observer<? super T> subscriber) {
248249 * @return a SyncOnSubscribe that emits data downstream in a protocol compatible with
249250 * back-pressure.
250251 */
251- @ Experimental
252+ @ Beta
252253 public static <T > SyncOnSubscribe <Void , T > createStateless (final Action1 <? super Observer <? super T >> next ,
253254 final Action0 onUnsubscribe ) {
254255 Func2 <Void , Observer <? super T >, Void > nextFunc = new Func2 <Void , Observer <? super T >, Void >() {
0 commit comments