fm.liveswitch.ConnectionStateRecord Class Reference

Represents a single connection state transition record with timing information. More...

Public Member Functions

 ConnectionStateRecord ()
 
java.util.Date getDateTime ()
 Gets the UTC datetime when the state transition occurred. More...
 
fm.liveswitch.ConnectionState getState ()
 Gets the connection state. More...
 
long getTimeStamp ()
 Gets the millisecond timestamp when the state transition occurred. More...
 
void setDateTime (java.util.Date value)
 Sets the UTC datetime when the state transition occurred. More...
 
void setState (fm.liveswitch.ConnectionState value)
 Sets the connection state. More...
 
void setTimeStamp (long value)
 Sets the millisecond timestamp when the state transition occurred. More...
 
String toString (long previousTime)
 Creates a string representation of the state transition. More...
 

Detailed Description

Represents a single connection state transition record with timing information.

Constructor & Destructor Documentation

◆ ConnectionStateRecord()

fm.liveswitch.ConnectionStateRecord.ConnectionStateRecord ( )

Member Function Documentation

◆ getDateTime()

java.util.Date fm.liveswitch.ConnectionStateRecord.getDateTime ( )

Gets the UTC datetime when the state transition occurred.

◆ getState()

fm.liveswitch.ConnectionState fm.liveswitch.ConnectionStateRecord.getState ( )

Gets the connection state.

◆ getTimeStamp()

long fm.liveswitch.ConnectionStateRecord.getTimeStamp ( )

Gets the millisecond timestamp when the state transition occurred.

◆ setDateTime()

void fm.liveswitch.ConnectionStateRecord.setDateTime ( java.util.Date  value)

Sets the UTC datetime when the state transition occurred.

◆ setState()

void fm.liveswitch.ConnectionStateRecord.setState ( fm.liveswitch.ConnectionState  value)

Sets the connection state.

◆ setTimeStamp()

void fm.liveswitch.ConnectionStateRecord.setTimeStamp ( long  value)

Sets the millisecond timestamp when the state transition occurred.

◆ toString()

String fm.liveswitch.ConnectionStateRecord.toString ( long  previousTime)

Creates a string representation of the state transition.

Parameters
previousTimeThe timestamp of the previous state transition in milliseconds. Use 0 for the initial state.
Returns
A formatted string describing the state transition and duration if applicable.