Package io.activej.jmx
Class JmxModule.Builder
java.lang.Object
io.activej.common.builder.AbstractBuilder<JmxModule.Builder,JmxModule>
io.activej.jmx.JmxModule.Builder
- All Implemented Interfaces:
io.activej.common.builder.Builder<JmxModule>,io.activej.common.initializer.WithInitializer<JmxModule.Builder>
- Enclosing class:
- JmxModule
public final class JmxModule.Builder
extends io.activej.common.builder.AbstractBuilder<JmxModule.Builder,JmxModule>
-
Method Summary
Modifier and TypeMethodDescriptionprotected JmxModuledoBuild()withCustomType(Class<T> type, Function<T, String> to) withGlobalMBean(Type type, io.activej.inject.Key<?> key) withGlobalMBean(Type type, String named) withGlobalSingletons(Object... instances) withHistogram(io.activej.inject.Key<?> key, String attrName, int[] histogramLevels) withHistogram(io.activej.inject.Key<?> key, String attrName, Supplier<JmxHistogram> histogram) withHistogram(Class<?> clazz, String attrName, int[] histogramLevels) withHistogram(Class<?> clazz, String attrName, Supplier<JmxHistogram> histogram) withMaxJmxRefreshesPerOneCycle(int max) withModifier(io.activej.inject.Key<?> key, String attrName, AttributeModifier<T> modifier) withModifier(Type type, String attrName, AttributeModifier<T> modifier) withObjectNameMapping(ProtoObjectNameMapper objectNameMapper) withOptional(io.activej.inject.Key<?> key, String attrName) withOptional(Type type, String attrName) withRefreshPeriod(Duration refreshPeriod) withScopes(boolean withScopes) withWorkerPredicate(BiPredicate<io.activej.inject.Key<?>, Integer> predicate) Methods inherited from class io.activej.common.builder.AbstractBuilder
build, checkNotBuilt, isBuiltMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.common.initializer.WithInitializer
initialize, set, setIf, setIfNotNull
-
Method Details
-
withRefreshPeriod
-
withMaxJmxRefreshesPerOneCycle
-
withModifier
public <T> JmxModule.Builder withModifier(io.activej.inject.Key<?> key, String attrName, AttributeModifier<T> modifier) -
withModifier
public <T> JmxModule.Builder withModifier(Type type, String attrName, AttributeModifier<T> modifier) -
withOptional
-
withOptional
-
withHistogram
-
withHistogram
public JmxModule.Builder withHistogram(io.activej.inject.Key<?> key, String attrName, int[] histogramLevels) -
withHistogram
public JmxModule.Builder withHistogram(Class<?> clazz, String attrName, Supplier<JmxHistogram> histogram) -
withHistogram
public JmxModule.Builder withHistogram(io.activej.inject.Key<?> key, String attrName, Supplier<JmxHistogram> histogram) -
withGlobalMBean
-
withGlobalMBean
-
withObjectNameMapping
-
withScopes
-
withCustomType
-
withCustomType
-
withGlobalSingletons
-
withWorkerPredicate
public JmxModule.Builder withWorkerPredicate(BiPredicate<io.activej.inject.Key<?>, Integer> predicate) -
doBuild
- Specified by:
doBuildin classio.activej.common.builder.AbstractBuilder<JmxModule.Builder,JmxModule>
-