Class SimpleSingleton
java.lang.Object
org.wildfly.clustering.singleton.server.SimpleSingleton
- All Implemented Interfaces:
Singleton
A simple singleton state provider that delegates to a fixed state or provider of state.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleSingleton(Supplier<SingletonState> state) SimpleSingleton(SingletonState state) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.singleton.Singleton
getPrimaryProvider, getProviders, isPrimary
-
Constructor Details
-
SimpleSingleton
-
SimpleSingleton
-
-
Method Details
-
getSingletonState
- Specified by:
getSingletonStatein interfaceSingleton
-