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

com.github.lontime.exthttp.container.DisposableServerWrapper Maven / Gradle / Ivy

package com.github.lontime.exthttp.container;

import com.github.lontime.exthttp.configuration.ServerOption;
import reactor.netty.DisposableServer;

/**
 * DisposableServerWrapper.
 * @author lontime
 * @since 1.0
 */
public class DisposableServerWrapper {

    private DisposableServer disposableServer;

    private ServerOption option;

    private Boolean blocked;

    public DisposableServerWrapper(DisposableServer disposableServer, ServerOption option) {
        this.disposableServer = disposableServer;
        this.blocked = false;
        this.option = option;
    }

    public Boolean getBlocked() {
        return blocked;
    }

    public DisposableServerWrapper setBlocked(Boolean blocked) {
        this.blocked = blocked;
        return this;
    }

    public DisposableServer getDisposableServer() {
        return disposableServer;
    }

    public ServerOption getOption() {
        return option;
    }

    public String getName() {
        return option.getName();
    }

    public Boolean getAutoStart() {
        return option.getAutoStart();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy