All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dingtalk.open.app.stream.network.ws.WebsocketIdleHandler Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.dingtalk.open.app.stream.network.ws;

import io.netty.handler.timeout.IdleStateHandler;

import java.time.Duration;
import java.util.concurrent.TimeUnit;

/**
 * @author feiyin
 * @date 2023/6/13
 */
public class WebsocketIdleHandler extends IdleStateHandler {

    public WebsocketIdleHandler(Duration keepAliveIdle) {
        super(keepAliveIdle.toMillis(), keepAliveIdle.toMillis(), keepAliveIdle.toMillis(), TimeUnit.MILLISECONDS);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy