[Asterisk-java-cvs] CVS: asterisk-java/src/java/net/sf/asterisk/fastagi/command GetDataCommand.java,
Brought to you by:
srt
From: Stefan R. <sr...@us...> - 2005-03-11 23:15:49
|
Update of /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17071/src/java/net/sf/asterisk/fastagi/command Modified Files: GetDataCommand.java Log Message: Added Constructor with file and timeout Index: GetDataCommand.java =================================================================== RCS file: /cvsroot/asterisk-java/asterisk-java/src/java/net/sf/asterisk/fastagi/command/GetDataCommand.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -p -r1.2 -r1.3 --- GetDataCommand.java 8 Mar 2005 16:48:34 -0000 1.2 +++ GetDataCommand.java 11 Mar 2005 23:15:39 -0000 1.3 @@ -64,7 +64,23 @@ public class GetDataCommand extends AGIC } /** - * Creates a new GetDataCommand. + * Creates a new GetDataCommand with the given timeout and maxDigits set to + * 1024. + * + * @param file the name of the file to stream, must not include extension. + * @param timeout the timeout to wait for data.<br> + * 0 means standard timeout value, -1 means "ludicrous time" + * (essentially never times out). + */ + public GetDataCommand(String file, int timeout) + { + this.file = file; + this.timeout = timeout; + this.maxDigits = 1024; + } + + /** + * Creates a new GetDataCommand with the given timeout and maxDigits. * * @param file the name of the file to stream, must not include extension. * @param timeout the timeout to wait for data.<br> |