public class MoSKitoContext
extends java.lang.Object
| Constructor and Description |
|---|
MoSKitoContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTag(java.lang.String tagName,
java.lang.String tagValue,
TagType type,
java.lang.String source) |
static void |
cleanup() |
static MoSKitoContext |
get() |
long |
getInstanceNumber()
Returns number of this instance, this can be used to distinguish calls.
|
IStatsProducer |
getLastProducer() |
static java.util.Map<java.lang.String,java.lang.String> |
getTags() |
boolean |
hasTracerFired() |
boolean |
markErrorAndReturnIfErrorAlreadyHappenedBefore()
Marks current context as erroneous (having one error occurred already) and returns the previous value.
|
void |
reset()
Resets the current context.
|
boolean |
seenErrorAlready(java.lang.Throwable throwable) |
void |
setLastProducer(IStatsProducer lastProducer) |
void |
setTracerFired() |
public static MoSKitoContext get()
public static void addTag(java.lang.String tagName,
java.lang.String tagValue,
TagType type,
java.lang.String source)
public long getInstanceNumber()
public static java.util.Map<java.lang.String,java.lang.String> getTags()
public boolean markErrorAndReturnIfErrorAlreadyHappenedBefore()
public void reset()
public static void cleanup()
public boolean seenErrorAlready(java.lang.Throwable throwable)
public boolean hasTracerFired()
public void setTracerFired()
public IStatsProducer getLastProducer()
public void setLastProducer(IStatsProducer lastProducer)
Copyright © 2010-2020 anotheria.net. All Rights Reserved.