public class SessionClient extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SessionClient.SessionState
Internal Representation of Application Session's state
|
| Modifier and Type | Field and Description |
|---|---|
protected static long |
DEFAULT_RESTART_DELAY |
protected static long |
DEFAULT_RESUME_DELAY |
protected static String |
NO_SESSION_ID |
protected com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext |
pinpointContext |
protected static String |
RESTART_DELAY_CONFIG_KEY |
protected static String |
RESUME_DELAY_CONFIG_KEY |
protected Session |
session |
static String |
SESSION_PAUSE_EVENT_TYPE |
static String |
SESSION_RESUME_EVENT_TYPE |
static String |
SESSION_START_EVENT_TYPE |
static String |
SESSION_STOP_EVENT_TYPE |
protected static String |
SHARED_PREFS_SESSION_KEY |
| Constructor and Description |
|---|
SessionClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext pinpointContext)
CONSTRUCTOR
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
executePause()
- Pause the current session object - Fire a Session Pause Event - Persist
Session to the file system.
|
protected void |
executeResume()
- Re-Activate the session - Fire Session Resume Event
|
protected void |
executeStart() |
protected void |
executeStop() |
long |
getRestartDelay() |
long |
getResumeDelay() |
protected Session |
getSession()
Getters
|
protected SessionClient.SessionState |
getSessionState()
Returns the Application Session's state
|
void |
pauseSession()
Briefly pauses an application session.
|
void |
resumeSession()
Resumes an application session if the session has been paused within a
defined time interval.
|
void |
startSession()
Starts an application session Used solely by Amazon Insights
|
void |
stopSession()
Stops an application session Used solely by Amazon Insights
|
String |
toString()
Overridden toString method for testing
|
public static final String SESSION_START_EVENT_TYPE
public static final String SESSION_STOP_EVENT_TYPE
public static final String SESSION_PAUSE_EVENT_TYPE
public static final String SESSION_RESUME_EVENT_TYPE
protected static final long DEFAULT_RESUME_DELAY
protected static final long DEFAULT_RESTART_DELAY
protected static final String RESUME_DELAY_CONFIG_KEY
protected static final String RESTART_DELAY_CONFIG_KEY
protected static final String NO_SESSION_ID
protected static final String SHARED_PREFS_SESSION_KEY
protected final com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext pinpointContext
protected Session session
public SessionClient(com.amazonaws.mobileconnectors.pinpoint.internal.core.PinpointContext pinpointContext)
pinpointContext - public void startSession()
public void stopSession()
public void pauseSession()
public void resumeSession()
public String toString()
protected void executeStart()
protected void executeStop()
protected void executePause()
protected void executeResume()
protected Session getSession()
public long getRestartDelay()
public long getResumeDelay()
protected SessionClient.SessionState getSessionState()
Copyright © 2016. All rights reserved.