Converter.java 488 B

1234567891011121314151617181920212223242526272829
  1. package com.coyee.stream.converter;
  2. import java.io.IOException;
  3. import javax.servlet.AsyncContext;
  4. /**
  5. * @author hxfein
  6. * @className: Converter
  7. * @description: 转换器接口
  8. * @date 2022/5/12 14:32
  9. * @version:1.0
  10. */
  11. public interface Converter {
  12. /**
  13. * 添加一个流输出
  14. *
  15. * @param entity
  16. */
  17. void addOutputStreamEntity(String key, AsyncContext entity) throws IOException;
  18. /**
  19. * 要求关闭转换器
  20. */
  21. void softClose();
  22. }