All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.tio.client.ConnectionCompletionVo Maven / Gradle / Ivy

There is a newer version: 3.7.3.v20241201-RELEASE
Show newest version
package com.litongjava.tio.client;

import java.nio.channels.AsynchronousSocketChannel;
import java.util.concurrent.CountDownLatch;

import com.litongjava.tio.core.Node;

/**
 *
 * @author tanyaowu
 * 2017年4月1日 上午9:32:17
 */
public class ConnectionCompletionVo {

  private ClientChannelContext channelContext = null;

  private TioClient tioClient = null;

  private boolean isReconnect = false;

  private AsynchronousSocketChannel asynchronousSocketChannel;

  private Node serverNode;

  private String bindIp;

  private Integer bindPort;

  private CountDownLatch countDownLatch = null;

  /**
   * @author tanyaowu
   *
   */
  public ConnectionCompletionVo() {

  }

  /**
   * @param channelContext
   * @param tioClient
   * @param isReconnect
   * @param asynchronousSocketChannel
   * @param serverNode
   * @param bindIp
   * @param bindPort
   *
   * @author tanyaowu
   *
   */
  public ConnectionCompletionVo(ClientChannelContext channelContext, TioClient tioClient, boolean isReconnect,
      AsynchronousSocketChannel asynchronousSocketChannel, Node serverNode, String bindIp, Integer bindPort) {
    super();
    this.channelContext = channelContext;
    this.tioClient = tioClient;
    this.isReconnect = isReconnect;
    this.asynchronousSocketChannel = asynchronousSocketChannel;
    this.serverNode = serverNode;
    this.bindIp = bindIp;
    this.bindPort = bindPort;
  }

  /**
   * @return the tioClient
   */
  public TioClient getTioClient() {
    return tioClient;
  }

  /**
   * @return the asynchronousSocketChannel
   */
  public AsynchronousSocketChannel getAsynchronousSocketChannel() {
    return asynchronousSocketChannel;
  }

  /**
   * @return the bindIp
   */
  public String getBindIp() {
    return bindIp;
  }

  /**
   * @return the bindPort
   */
  public Integer getBindPort() {
    return bindPort;
  }

  /**
   * @return the channelContext
   */
  public ClientChannelContext getChannelContext() {
    return channelContext;
  }

  /**
   * @return the countDownLatch
   */
  public java.util.concurrent.CountDownLatch getCountDownLatch() {
    return countDownLatch;
  }

  /**
   * @return the serverNode
   */
  public Node getServerNode() {
    return serverNode;
  }

  /**
   * @return the isReconnect
   */
  public boolean isReconnect() {
    return isReconnect;
  }

  /**
   * @param tioClient the tioClient to set
   */
  public void setTioClient(TioClient tioClient) {
    this.tioClient = tioClient;
  }

  /**
   * @param asynchronousSocketChannel the asynchronousSocketChannel to set
   */
  public void setAsynchronousSocketChannel(AsynchronousSocketChannel asynchronousSocketChannel) {
    this.asynchronousSocketChannel = asynchronousSocketChannel;
  }

  /**
   * @param bindIp the bindIp to set
   */
  public void setBindIp(String bindIp) {
    this.bindIp = bindIp;
  }

  /**
   * @param bindPort the bindPort to set
   */
  public void setBindPort(Integer bindPort) {
    this.bindPort = bindPort;
  }

  /**
   * @param channelContext the channelContext to set
   */
  public void setChannelContext(ClientChannelContext channelContext) {
    this.channelContext = channelContext;
  }

  /**
   * @param countDownLatch the countDownLatch to set
   */
  public void setCountDownLatch(java.util.concurrent.CountDownLatch countDownLatch) {
    this.countDownLatch = countDownLatch;
  }

  /**
   * @param isReconnect the isReconnect to set
   */
  public void setReconnect(boolean isReconnect) {
    this.isReconnect = isReconnect;
  }

  /**
   * @param serverNode the serverNode to set
   */
  public void setServerNode(Node serverNode) {
    this.serverNode = serverNode;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy