@Override public void onEnter(ClientState lastState) { reconnectSubscription = stateController.rxScheduler().createWorker().schedule(new Action0() { @Override public void call() { if (stateController.currentState() != WaitingForReconnectState.this) return; // Reconnect now ConnectingState newState = new ConnectingState(stateController, nrReconnectAttempts); stateController.setState(newState); } }, stateController.clientConfig().reconnectInterval(), TimeUnit.MILLISECONDS); }
@Override public void onEnter(ClientState lastState) { reconnectSubscription = stateController.rxScheduler().createWorker().schedule(new Action0() { @Override public void call() { if (stateController.currentState() != WaitingForReconnectState.this) return; // Reconnect now ConnectingState newState = new ConnectingState(stateController, nrReconnectAttempts); stateController.setState(newState); } }, stateController.clientConfig().reconnectInterval(), TimeUnit.MILLISECONDS); }
@Override public void onEnter(ClientState lastState) { reconnectSubscription = stateController.rxScheduler().createWorker().schedule(new Action0() { @Override public void call() { if (stateController.currentState() != WaitingForReconnectState.this) return; // Reconnect now ConnectingState newState = new ConnectingState(stateController, nrReconnectAttempts); stateController.setState(newState); } }, stateController.clientConfig().reconnectInterval(), TimeUnit.MILLISECONDS); }
.observeOn(stateController.rxScheduler()) .subscribe(new Action1<Long>() { @Override
.observeOn(stateController.rxScheduler()) .subscribe(new Action1<Long>() { @Override
.observeOn(stateController.rxScheduler()) .subscribe(new Action1<Long>() { @Override
.observeOn(stateController.rxScheduler()) .subscribe(new Action1<Long>() { @Override
.observeOn(stateController.rxScheduler()) .subscribe(new Action1<Long>() { @Override
.observeOn(stateController.rxScheduler()) .subscribe(new Action1<Long>() { @Override