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

org.wildfly.clustering.singleton.server.StopCommand Maven / Gradle / Ivy

There is a newer version: 35.0.0.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.singleton.server;

import org.wildfly.clustering.server.dispatcher.Command;
import org.wildfly.clustering.server.manager.Service;

/**
 * Command to stop a singleton service.
 * @author Paul Ferraro
 */
public enum StopCommand implements Command {
    INSTANCE;

    @Override
    public Void execute(Service service) {
        service.stop();
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy