Package org.jboss.resteasy.tracing.api
Class RESTEasyTracingInfo
java.lang.Object
org.jboss.resteasy.tracing.api.RESTEasyTracingInfo
- Direct Known Subclasses:
TextBasedRESTEasyTracingInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final RESTEasyTracingInfoprotected static final ServiceLoader<RESTEasyTracingInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddMessage(RESTEasyTracingMessage message) Add a message to the queue to be processed.abstract StringformatDuration(long duration) static RESTEasyTracingInfoabstract String[]protected final booleanisEmpty()Checks if there are currently messages in the queue.protected final List<RESTEasyTracingMessage>pop()Returns an immutable copy of the current messages in the queue and clears the messages from the queue.protected final intsize()Returns the number of the messages in the queue.abstract booleansupports(RESTEasyTracingInfoFormat format)
-
Field Details
-
INSTANCES
-
DEFAULT
-
-
Constructor Details
-
RESTEasyTracingInfo
public RESTEasyTracingInfo()
-
-
Method Details
-
get
-
supports
-
getMessages
-
addMessage
Add a message to the queue to be processed.- Parameters:
message- the message to add
-
formatDuration
-
isEmpty
protected final boolean isEmpty()Checks if there are currently messages in the queue.- Returns:
trueif there are messages in the queue, otherwisefalseif the queue is empty
-
size
protected final int size()Returns the number of the messages in the queue.- Returns:
- the number of messages in the queue
-
pop
Returns an immutable copy of the current messages in the queue and clears the messages from the queue.- Returns:
- an immutable copy of the messages
-