|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acap.rudp.core.StatefulRunnable
com.acap.rudp.core.BaseUDPSessionManager
com.acap.rudp.me.J2meClient
public abstract class J2meClient
Implementation of a J2ME Reliable UDP Client Variable length messages are resent automatically until received by the receipient Use: 1. Create an instance 2. call start() 3. when shutting down call stop()
| Constructor Summary | |
|---|---|
J2meClient(java.lang.String senderId,
java.lang.String serverUrl)
Creates an instance |
|
| Method Summary | |
|---|---|
boolean |
getConnectionStatus()
Returns current connection status |
boolean |
isConnectionTimedOut()
Returns timed out status of connection |
abstract void |
receiveException(java.lang.Exception x)
|
void |
start()
Starts the client. |
void |
stop()
Stops the client |
| Methods inherited from class com.acap.rudp.core.BaseUDPSessionManager |
|---|
doRun, getLastMessageReceivedDateTimeMillis, getPendingAcknowledgmentCount, getReceivedCount, getSenderId, getSentCount, hasMessagesPendingAck, incrementReceivedCount, receivePacket, send, updateLastMessageReceivedDateTime |
| Methods inherited from class com.acap.rudp.core.StatefulRunnable |
|---|
isStarted, run |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public J2meClient(java.lang.String senderId,
java.lang.String serverUrl)
throws java.lang.Exception
senderId - 17 character length ID of this deviceserverUrl - Datagram URL
java.lang.Exception| Method Detail |
|---|
public abstract void receiveException(java.lang.Exception x)
public boolean getConnectionStatus()
public boolean isConnectionTimedOut()
public void stop()
stop in class StatefulRunnable
public void start()
throws java.lang.Exception
start in class StatefulRunnablejava.lang.Exception - if already started.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||