?? smsclistener.java
字號:
package org.smpp.smscsim;
import java.io.IOException;
/* Created on 2003-jul-26 */
/**
* Please enter a description of this class here
*
* @author Sverker Abrahamsson
*
* @version $Revision: 1.2 $
*
*/
public interface SMSCListener {
/**
* Starts the listening. If the listener is asynchronous (reccomended),
* then new thread is created which listens on the port and the
* <code>start</code> method returns to the caller. Otherwise
* the caller is blocked in the start method.
* @see #stop()
*/
public abstract void start() throws IOException;
/**
* Signals the listener that it should stop listening and wait
* until the listener stops. Note that based on the timeout settings
* it can take some time befor this method is finished -- the listener
* can be blocked on i/o operation and only after exiting i/o
* it can detect that it should stop.
* @see #start()
*/
public abstract void stop() throws IOException;
/**
* The actual listening code which is run either from the thread
* (for async listener) or called from <code>start</code> method
* (for sync listener). The method can be exited by calling of method
* <code>stop</code>.
* @see #start()
* @see #stop()
*/
public abstract void run();
/**
* Sets a PDU processor factory to use for generating PDU processors.
* @param processorFactory the new PDU processor factory
*/
public abstract void setPDUProcessorFactory(PDUProcessorFactory processorFactory);
/**
* Sets new timeout for accepting new connection.
* The listening blocks the for maximum this time, then it
* exits regardless the connection was acctepted or not.
* @param value the new value for accept timeout
*/
public abstract void setAcceptTimeout(int value);
/**
* Returns the current setting of accept timeout.
* @return the current accept timeout
* @see #setAcceptTimeout(int)
*/
public abstract long getAcceptTimeout();
}
/*
* $Log: SMSCListener.java,v $
* Revision 1.2 2003/09/30 09:17:49 sverkera
* Created an interface for SMSCListener and SMSCSession and implementations of them so that it is possible to provide other implementations of these classes.
*
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -