
com.microsoft.applicationinsights.extensibility.context.SessionContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationinsights-core Show documentation
Show all versions of applicationinsights-core Show documentation
This is the core module of Microsoft Application Insights Java SDK
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.applicationinsights.extensibility.context;
import com.microsoft.applicationinsights.internal.util.MapUtil;
import java.util.concurrent.ConcurrentMap;
public final class SessionContext {
private final ConcurrentMap tags;
public SessionContext(ConcurrentMap tags) {
this.tags = tags;
}
public void setId(String id) {
MapUtil.setStringValueOrRemove(tags, ContextTagKeys.getKeys().getSessionId(), id);
}
public void setIsFirst(Boolean isFirst) {
MapUtil.setBoolValueOrRemove(tags, ContextTagKeys.getKeys().getSessionIsFirst(), isFirst);
}
public void setIsNewSession(Boolean isNewSession) {
MapUtil.setBoolValueOrRemove(tags, ContextTagKeys.getKeys().getSessionIsNew(), isNewSession);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy