org.mobicents.protocols.smpp
Interface Receiver

All Known Implementing Classes:
ReceiverThread

public interface Receiver

Interface definition for an object that can act as a receiver for an SMPP session.

Since:
0.4.0
Version:
$Id: Receiver.java 452 2009-01-15 16:56:36Z orank $

Method Summary
 String getName()
          Get the name of this receiver.
 Session getSession()
          Get the session that this receiver is using.
 boolean isStarted()
          Test if this receiver is currently started.
 void setName(String name)
          Set the name of this receiver.
 void setSession(Session session)
          Se the session that this receiver is using.
 void start()
          Start this receiver.
 void stop()
          Stop this receiver.
 

Method Detail

getName

String getName()
Get the name of this receiver.

Returns:
The name of this receiver.

setName

void setName(String name)
Set the name of this receiver.

Parameters:
name - The name of this receiver.

getSession

Session getSession()
Get the session that this receiver is using.

Returns:
The SMPP session this receiver is using.

setSession

void setSession(Session session)
Se the session that this receiver is using.

Parameters:
session - The SMPP session this receiver is using.

isStarted

boolean isStarted()
Test if this receiver is currently started.

Returns:
true if this receiver is running, false otherwise.

start

void start()
Start this receiver.


stop

void stop()
Stop this receiver. A receiver may not have stopped by the time this method returns. Callers should use the isStarted() method to ensure the receiver has been fully stopped.



Copyright © 2011 Mobicents. All Rights Reserved.