Package io.getunleash
Class UnleashContext
- java.lang.Object
-
- io.getunleash.UnleashContext
-
- Direct Known Subclasses:
UnleashContext
public class UnleashContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnleashContext.Builder
-
Constructor Summary
Constructors Constructor Description UnleashContext(String appName, String environment, String userId, String sessionId, String remoteAddress, ZonedDateTime currentTime, Map<String,String> properties)UnleashContext(String appName, String environment, String userId, String sessionId, String remoteAddress, Map<String,String> properties)UnleashContext(String userId, String sessionId, String remoteAddress, Map<String,String> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnleashContextapplyStaticFields(UnleashConfig config)static UnleashContext.Builderbuilder()Optional<String>getAppName()Optional<String>getByName(String contextName)Optional<ZonedDateTime>getCurrentTime()Optional<String>getEnvironment()Map<String,String>getProperties()Optional<String>getRemoteAddress()Optional<String>getSessionId()Optional<String>getUserId()
-
-
-
Constructor Detail
-
UnleashContext
public UnleashContext(String userId, String sessionId, String remoteAddress, Map<String,String> properties)
-
UnleashContext
public UnleashContext(@Nullable String appName, @Nullable String environment, @Nullable String userId, @Nullable String sessionId, @Nullable String remoteAddress, Map<String,String> properties)
-
-
Method Detail
-
getCurrentTime
public Optional<ZonedDateTime> getCurrentTime()
-
applyStaticFields
public UnleashContext applyStaticFields(UnleashConfig config)
-
builder
public static UnleashContext.Builder builder()
-
-