com.zusmart.base.network.message.MessageFuture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zusmart-base Show documentation
Show all versions of zusmart-base Show documentation
提供基础的工具类及方法类,Logging,Scanner,Buffer,NetWork,Future,Thread
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;
}
}