com.acap.rudp.samples
Class SampleJ2MEClient

java.lang.Object
  extended by com.acap.rudp.core.StatefulRunnable
      extended by com.acap.rudp.core.BaseUDPSessionManager
          extended by com.acap.rudp.me.J2meClient
              extended by com.acap.rudp.samples.SampleJ2MEClient
All Implemented Interfaces:
java.lang.Runnable

public class SampleJ2MEClient
extends J2meClient

Example of how to send and receive messages in J2ME environment


Constructor Summary
SampleJ2MEClient(java.lang.String senderId, java.lang.String serverUrl)
           
 
Method Summary
 void receiveException(java.lang.Exception x)
           
 
Methods inherited from class com.acap.rudp.me.J2meClient
getConnectionStatus, isConnectionTimedOut, start, stop
 
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

SampleJ2MEClient

public SampleJ2MEClient(java.lang.String senderId,
                        java.lang.String serverUrl)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

receiveException

public void receiveException(java.lang.Exception x)
Specified by:
receiveException in class J2meClient