org.yeauty.annotation.ServerEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netty-websocket-spring-boot-starter Show documentation
Show all versions of netty-websocket-spring-boot-starter Show documentation
netty-websocket-spring-boot-starter is a Java WebSocket Framework based on Netty
package org.yeauty.annotation;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Yeauty
* @version 1.0
*/
@Component
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ServerEndpoint {
@AliasFor("path")
String value() default "/";
@AliasFor("value")
String path() default "/";
String host() default "0.0.0.0";
String port() default "80";
String bossLoopGroupThreads() default "0";
String workerLoopGroupThreads() default "0";
String useCompressionHandler() default "false";
//------------------------- option -------------------------
String optionConnectTimeoutMillis() default "30000";
String optionSoBacklog() default "128";
//------------------------- childOption -------------------------
String childOptionWriteSpinCount() default "16";
String childOptionWriteBufferHighWaterMark() default "65536";
String childOptionWriteBufferLowWaterMark() default "32768";
String childOptionSoRcvbuf() default "-1";
String childOptionSoSndbuf() default "-1";
String childOptionTcpNodelay() default "true";
String childOptionSoKeepalive() default "false";
String childOptionSoLinger() default "-1";
String childOptionAllowHalfClosure() default "false";
//------------------------- idleEvent -------------------------
String readerIdleTimeSeconds() default "0";
String writerIdleTimeSeconds() default "0";
String allIdleTimeSeconds() default "0";
//------------------------- handshake -------------------------
String maxFramePayloadLength() default "65536";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy