Methods Summary |
---|
public abstract void | connect()Establishes a data channel with the IMPS server.
|
public abstract long | getLastActiveTime()Gets the time when the last primitive was sent to the server through the
data channel.
|
public abstract boolean | isSendingQueueEmpty()Tells if there is any primitive waiting to send.
|
public abstract Primitive | receivePrimitive()Receives a primitive from this data channel, waiting until a primitive
from the server arrived or being interrupted.
|
public abstract boolean | resume()Resume the suspended data channel.
|
public abstract void | sendPrimitive(Primitive p)Sends a CSP primitive to the IMPS server through this data channel.
|
public void | setServerMinPoll(long interval)Set the ServerMinPoll value (in seconds) after capability negotiation.
The DataChannel MUST NOT send more than 1 PollingRequest within
this interval.
mMinPollMillis = interval * 1000;
|
public abstract void | shutdown()Shutdown the data channel.
|
public abstract void | startKeepAlive(long interval)Starts the keep alive task. KeepAliveRequest will be sent to the server
if no other transaction has occurred during the KeepAliveTime interval.
|
public abstract void | suspend()Suspend the data channel. No data will be sent through the data channel
after suspended. It can be recovered from {@link #resume()}.
|