public class ListWriter extends CopyOnWriteArrayList<List<DDBaseSpan<?>>> implements Writer
| Constructor and Description |
|---|
ListWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Indicates to the writer that no future writing will come and it should terminates all
connections and tasks
|
List<DDBaseSpan<?>> |
firstTrace() |
List<List<DDBaseSpan<?>>> |
getList() |
void |
start()
Start the writer
|
void |
write(List<DDBaseSpan<?>> trace)
Write a trace represented by the entire list of all the finished spans
|
void |
writeServices(Map<String,Service> services)
Report additional service information to the endpoint
|
add, add, addAll, addAll, addAllAbsent, addIfAbsent, clear, clone, contains, containsAll, equals, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, toStringparallelStream, streampublic List<List<DDBaseSpan<?>>> getList()
public List<DDBaseSpan<?>> firstTrace()
public void write(List<DDBaseSpan<?>> trace)
Writerpublic void writeServices(Map<String,Service> services)
WriterwriteServices in interface Writerservices - a list of extra information about servicespublic void start()
Writer