public interface Segment extends Entity
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
end()
Ends the segment.
|
Map<String,Object> |
getAnnotations() |
String |
getOrigin() |
Segment |
getParentSegment() |
String |
getResourceArn() |
Map<String,Object> |
getService() |
String |
getUser() |
boolean |
isSampled() |
void |
putAllService(Map<String,Object> all)
Puts information about this service.
|
void |
putService(String key,
Object object)
Puts information about this service.
|
void |
setOrigin(String origin) |
void |
setResourceArn(String resourceArn) |
void |
setSampled(boolean sampled) |
void |
setService(Map<String,Object> service) |
void |
setUser(String user) |
addException, addSubsegment, decrementReferenceCount, generateId, getAws, getCause, getCreator, getEndTime, getHttp, getId, getMetadata, getName, getNamespace, 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, setNamespace, setParent, setParentId, setSql, setStartTime, setSubsegmentsLock, setThrottle, setTraceId
boolean end()
boolean isSampled()
void setSampled(boolean sampled)
sampled
- the sampled to setAlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsString getResourceArn()
void setResourceArn(String resourceArn)
resourceArn
- the resourceArn to setAlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsString getUser()
void setUser(String user)
user
- the user to setAlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsString getOrigin()
void setOrigin(String origin)
origin
- the origin to setAlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsvoid setService(Map<String,Object> service)
service
- the service to setAlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsMap<String,Object> getAnnotations()
getAnnotations
in interface Entity
void putService(String key, Object object)
key
- the key under which the service information is storedobject
- the service informationAlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsvoid putAllService(Map<String,Object> all)
all
- the service information to set.AlreadyEmittedException
- if the entity has already been emitted to the X-Ray daemon and the ContextMissingStrategy of the AWSXRayRecorder used to create this entity is configured to throw exceptionsSegment getParentSegment()
getParentSegment
in interface Entity
void close()
close
in interface AutoCloseable
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.