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

com.zusmart.base.network.message.MessageFuture Maven / Gradle / Ivy

Go to download

提供基础的工具类及方法类,Logging,Scanner,Buffer,NetWork,Future,Thread

There is a newer version: 1.0.6
Show newest version
package com.zusmart.base.network.message;

import com.zusmart.base.future.FutureListener;
import com.zusmart.base.future.support.AbstractFuture;
import com.zusmart.base.network.ChannelContext;

public class MessageFuture extends AbstractFuture> {

	private final ChannelContext session;
	private final Message message;

	public MessageFuture(ChannelContext session, Message message) {
		this.session = session;
		this.message = message;
	}

	public Message getMessage() {
		return this.message;
	}

	public ChannelContext getSession() {
		return this.session;
	}

	@Override
	protected MessageFuture getFuture() {
		return this;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy