Class ManagedTracker
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<org.eclipse.jetty.util.component.LifeCycle>
ru.vyarus.dropwizard.guice.debug.report.start.ManagedTracker
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<org.eclipse.jetty.util.component.LifeCycle>,Collection<org.eclipse.jetty.util.component.LifeCycle>,List<org.eclipse.jetty.util.component.LifeCycle>,RandomAccess
Managed objects tracker for startup time report. Replaces managed objects list inside
LifecycleEnvironment to wrap existing and future managed (and lifecycle)
objects (to be able to track start and stop executions).- Since:
- 10.03.2025
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionManagedTracker(StartupTimeInfo start, ShutdownTimeInfo stop, io.dropwizard.lifecycle.setup.LifecycleEnvironment lifecycle) Create tracker. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, org.eclipse.jetty.util.component.LifeCycle element) booleanadd(org.eclipse.jetty.util.component.LifeCycle lifeCycle) booleanaddAll(int index, Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c) booleanaddAll(Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c) org.eclipse.jetty.util.component.LifeCycleset(int index, org.eclipse.jetty.util.component.LifeCycle element) Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ManagedTracker
public ManagedTracker(StartupTimeInfo start, ShutdownTimeInfo stop, io.dropwizard.lifecycle.setup.LifecycleEnvironment lifecycle) Create tracker.- Parameters:
start- start infostop- stop infolifecycle- lifecycle instance
-
-
Method Details
-
add
public boolean add(org.eclipse.jetty.util.component.LifeCycle lifeCycle) -
add
public void add(int index, org.eclipse.jetty.util.component.LifeCycle element) -
addAll
-
addAll
public boolean addAll(int index, Collection<? extends org.eclipse.jetty.util.component.LifeCycle> c) -
set
public org.eclipse.jetty.util.component.LifeCycle set(int index, org.eclipse.jetty.util.component.LifeCycle element)
-