org.wildfly.clustering.singleton.server.SingletonContextRegistration Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.singleton.server;
import org.jboss.msc.service.ServiceName;
import org.wildfly.clustering.server.GroupMember;
import org.wildfly.clustering.server.dispatcher.CommandDispatcher;
import org.wildfly.clustering.server.provider.ServiceProviderRegistration;
/**
* @author Paul Ferraro
*/
public interface SingletonContextRegistration extends SingletonRegistration, SingletonContext {
CommandDispatcher getCommandDispatcher();
ServiceProviderRegistration getServiceProviderRegistration();
@Override
default void close() {
this.getServiceProviderRegistration().close();
this.getCommandDispatcher().close();
}
}