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

com.github.luohaha.context.ContextBean Maven / Gradle / Ivy

package com.github.luohaha.context;

import java.util.Queue;

import com.github.luohaha.connection.Connection;
import com.github.luohaha.connection.DataBag;
import com.github.luohaha.param.Param;

public class ContextBean {
	// a connection
	private Connection connection;
	// already read
	private Queue alreadyReadData;
	// ready to read
	private DataBag readyToRead;
	// operations
	private int ops;
	// params
	private Param param;
	public ContextBean(Connection connection, Queue alreadyReadData, DataBag readyToRead, int ops,
			Param param) {
		super();
		this.connection = connection;
		this.alreadyReadData = alreadyReadData;
		this.readyToRead = readyToRead;
		this.ops = ops;
		this.param = param;
	}
	public Connection getConnection() {
		return connection;
	}
	public void setConnection(Connection connection) {
		this.connection = connection;
	}
	public Queue getAlreadyReadData() {
		return alreadyReadData;
	}
	public void setAlreadyReadData(Queue alreadyReadData) {
		this.alreadyReadData = alreadyReadData;
	}
	public DataBag getReadyToRead() {
		return readyToRead;
	}
	public void setReadyToRead(DataBag readyToRead) {
		this.readyToRead = readyToRead;
	}
	public int getOps() {
		return ops;
	}
	public void setOps(int ops) {
		this.ops = ops;
	}
	public Param getParam() {
		return param;
	}
	public void setParam(Param param) {
		this.param = param;
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy