Package iqq.im.event

Examples of iqq.im.event.QQActionFuture


        }
      }
    }, new ThreadActorDispatcher());
   
    //测试同步模式登录
    QQActionFuture future = client.login(QQStatus.ONLINE, null);
    QQActionEvent event = future.waitFinalEvent();
    if(event.getType() == Type.EVT_OK){
      System.out.println("登录成功!!!!");
     
      event = client.getUserInfo(client.getAccount(), null).waitFinalEvent();
     
View Full Code Here


   *
   * @param action a {@link iqq.im.action.HttpAction} object.
   * @return a {@link iqq.im.event.QQActionFuture} object.
   */
  protected QQActionFuture pushHttpAction(HttpAction action){
    QQActionFuture future = new HttpActionFuture(action);     //替换掉原始的QQActionListener
    getContext().pushActor(new HttpActor(HttpActor.Type.BUILD_REQUEST, getContext(), action));
    return future;
  }
View Full Code Here

  public QQActionFuture relogin(QQStatus status, final QQActionListener listener){
    getContext().getAccount().setStatus(status);
    getContext().getSession().setState(QQSession.State.LOGINING);
    LoginModule login = getContext().getModule(QQModule.Type.LOGIN);
    LOG.info("iqq client relogin...");
    QQActionFuture future = login.channelLogin(status, new QQActionListener() {
     
      @Override
      public void onActionEvent(QQActionEvent event) {
        if(event.getType() == QQActionEvent.Type.EVT_ERROR) {
          LOG.info("iqq client reloginChannel fail!!! use relogin.");
View Full Code Here

TOP

Related Classes of iqq.im.event.QQActionFuture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.