org.mobicents.protocols.smpp
Class ReceiverThread

java.lang.Object
  extended by org.mobicents.protocols.smpp.ReceiverThread
All Implemented Interfaces:
Runnable, Receiver

public class ReceiverThread
extends Object
implements Receiver, Runnable

Receiver thread for the connection.

Version:
$Id: ReceiverThread.java 456 2009-01-15 17:15:38Z orank $
Author:
amit bhayani

Constructor Summary
ReceiverThread()
           
ReceiverThread(Session session)
           
 
Method Summary
 String getName()
          Get the name of this receiver.
 PacketFactory getPacketFactory()
           
 Session getSession()
          Get the session that this receiver is using.
 boolean isStarted()
          Test if this receiver is currently started.
 void run()
           
 void setName(String name)
          Set the name of this receiver.
 void setPacketFactory(PacketFactory packetFactory)
           
 void setSession(Session session)
          Se the session that this receiver is using.
 void start()
          Start this receiver.
 void stop()
          Stop this receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiverThread

public ReceiverThread()

ReceiverThread

public ReceiverThread(Session session)
Method Detail

getPacketFactory

public PacketFactory getPacketFactory()

setPacketFactory

public void setPacketFactory(PacketFactory packetFactory)

getSession

public Session getSession()
Description copied from interface: Receiver
Get the session that this receiver is using.

Specified by:
getSession in interface Receiver
Returns:
The SMPP session this receiver is using.

setSession

public void setSession(Session session)
Description copied from interface: Receiver
Se the session that this receiver is using.

Specified by:
setSession in interface Receiver
Parameters:
session - The SMPP session this receiver is using.

getName

public String getName()
Description copied from interface: Receiver
Get the name of this receiver.

Specified by:
getName in interface Receiver
Returns:
The name of this receiver.

setName

public void setName(String name)
Description copied from interface: Receiver
Set the name of this receiver.

Specified by:
setName in interface Receiver
Parameters:
name - The name of this receiver.

run

public void run()
Specified by:
run in interface Runnable

isStarted

public boolean isStarted()
Description copied from interface: Receiver
Test if this receiver is currently started.

Specified by:
isStarted in interface Receiver
Returns:
true if this receiver is running, false otherwise.

start

public void start()
Description copied from interface: Receiver
Start this receiver.

Specified by:
start in interface Receiver

stop

public void stop()
Description copied from interface: Receiver
Stop this receiver. A receiver may not have stopped by the time this method returns. Callers should use the Receiver.isStarted() method to ensure the receiver has been fully stopped.

Specified by:
stop in interface Receiver


Copyright © 2011 Mobicents. All Rights Reserved.