Class TraceWriteStrategyImpl
- java.lang.Object
-
- org.datadog.jenkins.plugins.datadog.traces.write.TraceWriteStrategyImpl
-
- All Implemented Interfaces:
TraceWriteStrategy
public class TraceWriteStrategyImpl extends Object implements TraceWriteStrategy
-
-
Constructor Summary
Constructors Constructor Description TraceWriteStrategyImpl(Track track, ThrowingConsumer<Collection<Payload>> spansSender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(Collection<Payload> serializationResult)Payloadserialize(BuildData buildData, Run<?,?> run)Payloadserialize(PipelineStepData stepData, Run<?,?> run)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datadog.jenkins.plugins.datadog.traces.write.TraceWriteStrategy
close
-
-
-
-
Constructor Detail
-
TraceWriteStrategyImpl
public TraceWriteStrategyImpl(Track track, ThrowingConsumer<Collection<Payload>> spansSender)
-
-
Method Detail
-
serialize
@Nullable public Payload serialize(BuildData buildData, Run<?,?> run)
- Specified by:
serializein interfaceTraceWriteStrategy
-
serialize
@Nullable public Payload serialize(PipelineStepData stepData, Run<?,?> run) throws IOException, InterruptedException
- Specified by:
serializein interfaceTraceWriteStrategy- Throws:
IOExceptionInterruptedException
-
send
public void send(Collection<Payload> serializationResult)
- Specified by:
sendin interfaceTraceWriteStrategy
-
-