fm.liveswitch.Transport Class Referenceabstract

A transport. More...

Public Member Functions

abstract void addOnReceive (fm.liveswitch.IAction1< fm.liveswitch.DataBuffer > value)
 Adds a handler that is raised when data is received. More...
 
abstract boolean getIsClosed ()
 Gets a value indicating whether this instance is closed. More...
 
int getRoundTripTime ()
 Gets the current round-trip-time in milliseconds. More...
 
abstract void removeOnReceive (fm.liveswitch.IAction1< fm.liveswitch.DataBuffer > value)
 Removes a handler that is raised when data is received. More...
 
abstract void send (fm.liveswitch.DataBuffer buffer)
 Sends the specified buffer. More...
 
- Public Member Functions inherited from fm.liveswitch.Dynamic
java.util.HashMap< String, Object > getDynamicProperties ()
 Gets all dynamic properties on this instance. More...
 
Object getDynamicValue (String key)
 Gets a property value from the local cache. More...
 
void setDynamicValue (String key, Object value)
 Sets a property value in the local cache. More...
 
boolean unsetDynamicValue (String key)
 Removes a property value from the local cache. More...
 

Protected Member Functions

 Transport ()
 
- Protected Member Functions inherited from fm.liveswitch.Dynamic
 Dynamic ()
 
- Protected Member Functions inherited from fm.liveswitch.Serializable
boolean getIsDirty ()
 Gets a value indicating whether this instance is dirty. More...
 
 Serializable ()
 Initializes a new instance of the fm.liveswitch.Serializable class. More...
 
void setIsDirty (boolean value)
 Sets a value indicating whether this instance is dirty. More...
 

Detailed Description

A transport.

Constructor & Destructor Documentation

◆ Transport()

fm.liveswitch.Transport.Transport ( )
protected

Member Function Documentation

◆ addOnReceive()

abstract void fm.liveswitch.Transport.addOnReceive ( fm.liveswitch.IAction1< fm.liveswitch.DataBuffer value)
abstract

Adds a handler that is raised when data is received.

◆ getIsClosed()

abstract boolean fm.liveswitch.Transport.getIsClosed ( )
abstract

Gets a value indicating whether this instance is closed.

◆ getRoundTripTime()

int fm.liveswitch.Transport.getRoundTripTime ( )

Gets the current round-trip-time in milliseconds.

◆ removeOnReceive()

abstract void fm.liveswitch.Transport.removeOnReceive ( fm.liveswitch.IAction1< fm.liveswitch.DataBuffer value)
abstract

Removes a handler that is raised when data is received.

◆ send()

abstract void fm.liveswitch.Transport.send ( fm.liveswitch.DataBuffer  buffer)
abstract

Sends the specified buffer.

Parameters
bufferThe buffer.