This commit is contained in:
yinkanglong
2023-10-21 09:48:50 +08:00
parent 5ef2c996cf
commit b2f069ee8d
555 changed files with 1886 additions and 506 deletions

View File

@@ -0,0 +1,20 @@
package cn.aofeng.demo.reactor;
import java.nio.ByteBuffer;
/**
* 响应数据封装接口定义。
*
* @author <a href="mailto:aofengblog@163.com">NieYong </a>
*/
public interface Encoder {
/**
* 将源数据转换成{@link ByteBuffer}。
*
* @param source 源数据
* @return {@link ByteBuffer}对象。
*/
public ByteBuffer encode(Object source);
}