public class SubsegmentImpl extends EntityImpl implements Subsegment
Constructor and Description |
---|
SubsegmentImpl(AWSXRayRecorder creator,
String name,
Segment parentSegment) |
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, 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, validateNotNull
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public SubsegmentImpl(AWSXRayRecorder creator, String name, Segment parentSegment)
public boolean end()
Subsegment
end
in interface Subsegment
public String getNamespace()
getNamespace
in interface Entity
getNamespace
in interface Subsegment
getNamespace
in class EntityImpl
public void setNamespace(String namespace)
setNamespace
in interface Entity
setNamespace
in interface Subsegment
setNamespace
in class EntityImpl
namespace
- the namespace to setpublic Segment getParentSegment()
getParentSegment
in interface Entity
getParentSegment
in interface Subsegment
getParentSegment
in class EntityImpl
public void setParentSegment(Segment parentSegment)
setParentSegment
in interface Subsegment
parentSegment
- the parentSegment to setpublic void addPrecursorId(String precursorId)
addPrecursorId
in interface Subsegment
precursorId
- the precursor ID to add to the setpublic Set<String> getPrecursorIds()
getPrecursorIds
in interface Subsegment
public void setPrecursorIds(Set<String> precursorIds)
setPrecursorIds
in interface Subsegment
precursorIds
- the precursorIds to setpublic String streamSerialize()
Subsegment
streamSerialize
in interface Subsegment
public String prettyStreamSerialize()
Subsegment
prettyStreamSerialize
in interface Subsegment
public void close()
close
in interface Subsegment
close
in interface AutoCloseable
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.