Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29601/src/java/net/sf/asterisk/manager/action
Modified Files:
OriginateAction.java
Log Message:
added deprecated setTimeout(Integer) method for backward compatibility
Index: OriginateAction.java
===================================================================
RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/manager/action/OriginateAction.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -p -r1.5 -r1.6
--- OriginateAction.java 16 Jul 2005 23:27:46 -0000 1.5
+++ OriginateAction.java 16 Jul 2005 23:30:13 -0000 1.6
@@ -236,6 +236,22 @@ public class OriginateAction extends Abs
* The channel must be answered within this time, otherwise the origination
* is considered to have failed and an OriginateFailureEvent is generated.<br>
* If not set, Asterisk assumes a default value of 30000 meaning 30 seconds.
+ *
+ * @param timeout the timeout in milliseconds
+ * @deprecated use {@see #setTimeout(Long)} instead.
+ */
+ public c
+ {
+ this.timeout = new Long(timeout.longValue());
+ }
+
+ /**
+ * Sets the timeout (in milliseconds) for the origination.<br>
+ * The channel must be answered within this time, otherwise the origination
+ * is considered to have failed and an OriginateFailureEvent is generated.<br>
+ * If not set, Asterisk assumes a default value of 30000 meaning 30 seconds.
+ *
+ * @param timeout the timeout in milliseconds
*/
public void setTimeout(Long timeout)
{
|