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

xyz.erupt.cloud.server.annotation.EruptCloudServer Maven / Gradle / Ivy

There is a newer version: 1.12.17
Show newest version
package xyz.erupt.cloud.server.annotation;

import xyz.erupt.cloud.server.node.MetaNode;

import javax.servlet.http.HttpServletRequest;
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
public @interface EruptCloudServer {

    Class value();

    interface Proxy {

        /**
         * 节点心跳注册
         *
         * @param metaNode 节点注册对象
         * @param request  request对象
         */
        default void registerNode(MetaNode metaNode, HttpServletRequest request) {

        }

        /**
         * 节点移除
         *
         * @param nodeName 节点名
         * @param request  request对象
         */
        default void removeNode(String nodeName, HttpServletRequest request) {

        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy