public interface Subsegment extends Entity
Modifier and Type | Method and Description |
---|---|
void |
addPrecursorId(String precursorId) |
void |
close() |
boolean |
end()
Ends the subsegment.
|
String |
getNamespace() |
Segment |
getParentSegment() |
Set<String> |
getPrecursorIds() |
String |
prettyStreamSerialize()
Pretty-serializes the subsegment as a standalone String with enough information for the subsegment to be streamed on its own.
|
void |
setNamespace(String namespace) |
void |
setParentSegment(Segment parentSegment) |
void |
setPrecursorIds(Set<String> precursorIds) |
String |
streamSerialize()
Serializes the subsegment as a standalone String with enough information for the subsegment to be streamed on its own.
|
addException, addSubsegment, decrementReferenceCount, generateId, getAnnotations, getAws, getCause, getCreator, getEndTime, getHttp, getId, getMetadata, getName, getParent, getParentId, getReferenceCount, getSql, getStartTime, getSubsegments, getSubsegmentsLock, getTotalSize, getTraceId, incrementReferenceCount, isEmitted, isError, isFault, isInProgress, isThrottle, prettySerialize, putAllAws, putAllHttp, putAllSql, putAnnotation, putAnnotation, putAnnotation, putAws, putHttp, putMetadata, putMetadata, putSql, removeSubsegment, serialize, setAnnotations, setAws, setCreator, setEmitted, setEndTime, setError, setFault, setHttp, setId, setInProgress, setMetadata, setParent, setParentId, setSql, setStartTime, setSubsegmentsLock, setThrottle, setTraceId
boolean end()
String getNamespace()
getNamespace
in interface Entity
void setNamespace(String namespace)
setNamespace
in interface Entity
namespace
- the namespace to setSegment getParentSegment()
getParentSegment
in interface Entity
void setParentSegment(Segment parentSegment)
parentSegment
- the parentSegment to setvoid setPrecursorIds(Set<String> precursorIds)
precursorIds
- the precursorIds to setvoid addPrecursorId(String precursorId)
precursorId
- the precursor ID to add to the setString streamSerialize()
String prettyStreamSerialize()
void close()
close
in interface AutoCloseable
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.