FileDocCategorySizeDatePackage
SystemServiceConnection.javaAPI DocphoneME MR2 API (J2ME)2311Wed May 02 18:00:10 BST 2007com.sun.midp.services

SystemServiceConnection

public interface SystemServiceConnection
Connection between service and client allowing to pass messages between them. Connection stays open until client Isolate exits. When connection is closed, service will be notified to give it a chance to perform necessary cleanup.

Fields Summary
Constructors Summary
Methods Summary
public SystemServiceMessagereceive()
Receives a message. Blocks until there is a message to receive. On client side, it receives message from service. On service side, it receives message from client.

return
received message

public voidsend(SystemServiceMessage msg)
Sends a message. Blocks until message is received. On client side, it sends message to service. On service side, it sends message to client.

param
msg message to send

public voidsetConnectionListener(SystemServiceConnectionListener listener)
Sets a listener which will be notified when message has arrived.

param
listener listener to notify. if null, removes current listener.