Class User
- java.lang.Object
-
- co.elastic.apm.agent.impl.context.User
-
- All Implemented Interfaces:
Recyclable
public class User extends java.lang.Object implements Recyclable
UserDescribes the authenticated User for a request.
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrom(User other)
java.lang.String
getEmail()
Email of the logged in userjava.lang.String
getId()
Identifier of the logged in user, e.g.java.lang.String
getUsername()
The username of the logged in userboolean
hasContent()
void
resetState()
resets pooled object state so it can be reusedUser
withEmail(java.lang.String email)
Email of the logged in userUser
withId(java.lang.String id)
Identifier of the logged in user, e.g.User
withUsername(java.lang.String username)
The username of the logged in user
-
-
-
Method Detail
-
getId
@Nullable public java.lang.String getId()
Identifier of the logged in user, e.g. the primary key of the user
-
withId
public User withId(@Nullable java.lang.String id)
Identifier of the logged in user, e.g. the primary key of the user
-
getEmail
@Nullable public java.lang.String getEmail()
Email of the logged in user
-
withEmail
public User withEmail(@Nullable java.lang.String email)
Email of the logged in user
-
getUsername
@Nullable public java.lang.String getUsername()
The username of the logged in user
-
withUsername
public User withUsername(@Nullable java.lang.String username)
The username of the logged in user
-
resetState
public void resetState()
Description copied from interface:Recyclable
resets pooled object state so it can be reused- Specified by:
resetState
in interfaceRecyclable
-
copyFrom
public void copyFrom(User other)
-
hasContent
public boolean hasContent()
-
-