package com.ld.io.api;
|
|
import java.util.Date;
|
|
/**
|
* 会话信息
|
*/
|
public interface IoSession {
|
String getId();//唯一标识
|
|
String getBusinessKey();//业务标识
|
|
void setBusinessKey(String businessKey);//设置业务标识
|
|
String getAddress();//ip地址
|
|
Integer getPort();//端口
|
|
String getCompanyId();//所属组织
|
|
void setCompanyId(String companyId);//设置组织编码
|
|
Date getCreateTime();//创建时间
|
|
InvokeResult invoke(byte[] bytes);//发送消息
|
|
void destroy();//销毁
|
}
|