zyneo.sms.gateway.adaptor.rmi.client
Interface ReceiveSocket

All Superinterfaces:
java.rmi.Remote

public interface ReceiveSocket
extends java.rmi.Remote

This interface defines the interface used by clients to the RMI-adaptor when receiving messages.

Author:
Niklas Andersson

Method Summary
 void close()
          Closes this connection
 java.lang.Object receivenb()
          Receives a Sms message or a Notification.
 int size()
          Gets the number of messages in the connected box.
 

Method Detail

size

public int size()
         throws java.rmi.RemoteException
Gets the number of messages in the connected box.

Returns:
the number of messages in connected box.
Throws:
java.rmi.RemoteException

receivenb

public java.lang.Object receivenb()
                           throws java.rmi.RemoteException
Receives a Sms message or a Notification. If no message is availible this method will return null.

Returns:
An object or null.
Throws:
java.rmi.RemoteException

close

public void close()
           throws java.rmi.RemoteException
Closes this connection

Throws:
java.rmi.RemoteException


Copyright © 2002 Zyneo. All Rights Reserved.