Package jexer.backend
Interface SessionInfo
-
- All Known Implementing Classes:
SwingSessionInfo
,TelnetInputStream
,TSessionInfo
,TTYSessionInfo
public interface SessionInfo
SessionInfo is used to store per-session properties that are determined at different layers of the communication stack.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIdleTime()
Get the time this session was idle.java.lang.String
getLanguage()
Language getter.long
getStartTime()
Get the time this session was started.java.lang.String
getUsername()
Username getter.int
getWindowHeight()
Text window height getter.int
getWindowWidth()
Text window width getter.void
queryWindowSize()
Re-query the text window size.void
setIdleTime(int seconds)
Set the time this session was idle.void
setLanguage(java.lang.String language)
Language setter.void
setUsername(java.lang.String username)
Username setter.
-
-
-
Method Detail
-
getStartTime
long getStartTime()
Get the time this session was started.- Returns:
- the number of millis since midnight, January 1, 1970 UTC
-
getIdleTime
int getIdleTime()
Get the time this session was idle.- Returns:
- the number of seconds since the last user input event from this session
-
setIdleTime
void setIdleTime(int seconds)
Set the time this session was idle.- Parameters:
seconds
- the number of seconds since the last user input event from this session
-
getUsername
java.lang.String getUsername()
Username getter.- Returns:
- the username
-
setUsername
void setUsername(java.lang.String username)
Username setter.- Parameters:
username
- the value
-
getLanguage
java.lang.String getLanguage()
Language getter.- Returns:
- the language
-
setLanguage
void setLanguage(java.lang.String language)
Language setter.- Parameters:
language
- the value
-
getWindowWidth
int getWindowWidth()
Text window width getter.- Returns:
- the window width
-
getWindowHeight
int getWindowHeight()
Text window height getter.- Returns:
- the window height
-
queryWindowSize
void queryWindowSize()
Re-query the text window size.
-
-