|
|
@ -12,11 +12,8 @@ import io.netty.channel.*; |
|
|
|
import io.netty.channel.nio.NioEventLoopGroup; |
|
|
|
import io.netty.channel.socket.nio.NioSocketChannel; |
|
|
|
import io.netty.util.CharsetUtil; |
|
|
|
import jakarta.annotation.PostConstruct; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.Setter; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
@ -27,12 +24,11 @@ import java.util.concurrent.CompletableFuture; |
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@Component |
|
|
|
@RequiredArgsConstructor |
|
|
|
public class TcpClient { |
|
|
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(TcpClient.class); |
|
|
|
private final TcpConfig tcpConfig; |
|
|
|
private DeviceMessageHandler deviceMessageHandler; |
|
|
|
|
|
|
|