@Override public void run() { if (!(stateController.currentState() instanceof SessionEstablishedState)) { resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED)); return; } // Forward publish into the session SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState(); curState.performPublish(topic, flags, arguments, argumentsKw, resultSubject); } });
@Override public void run() { if (!(stateController.currentState() instanceof SessionEstablishedState)) { resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED)); return; } // Forward publish into the session SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState(); curState.performPublish(topic, flags, arguments, argumentsKw, resultSubject); } });
@Override public void run() { if (!(stateController.currentState() instanceof SessionEstablishedState)) { resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED)); return; } // Forward publish into the session SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState(); curState.performPublish(topic, flags, arguments, argumentsKw, resultSubject); } });
@Override public void run() { if (!(stateController.currentState() instanceof SessionEstablishedState)) { resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED)); return; } // Forward performing actual call into the session SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState(); curState.performCall(procedure, flags, arguments, argumentsKw, resultSubject); } });
@Override public void run() { if (!(stateController.currentState() instanceof SessionEstablishedState)) { resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED)); return; } // Forward performing actual call into the session SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState(); curState.performCall(procedure, flags, arguments, argumentsKw, resultSubject); } });
@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 run() { if (stateController.currentState() != session) return; session.connectionController().sendMessage(msg, IWampConnectionPromise.Empty); } });
@Override public void run() { if (stateController.currentState() != session) return; session.connectionController().sendMessage(msg, IWampConnectionPromise.Empty); } });
@Override public void run() { if (stateController.currentState() != session) return; session.connectionController().sendMessage(msg, IWampConnectionPromise.Empty); } });
@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 run() { if (stateController.currentState() != session) return; session.connectionController().sendMessage(msg, IWampConnectionPromise.Empty); } });
@Override public void run() { if (stateController.currentState() != session) return; session.connectionController().sendMessage(msg, IWampConnectionPromise.Empty); } });
@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 run() { if (stateController.currentState() != session) return; session.connectionController().sendMessage(msg, IWampConnectionPromise.Empty); } });