mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +01:00
Timeout should only apply to remote commands.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10947 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
1bdacfb65e
commit
afe2b9b584
2 changed files with 10 additions and 12 deletions
|
@ -214,17 +214,6 @@ public abstract class AdHocCommand {
|
|||
*/
|
||||
public abstract void execute() throws XMPPException;
|
||||
|
||||
/**
|
||||
* Executes the command, waiting up to the <tt>timeout</tt> for a reply.
|
||||
* This is invoked only on the first stage of the
|
||||
* command. It is invoked on every command. If there is a problem executing
|
||||
* the command it throws an XMPPException.
|
||||
*
|
||||
* @param timeout the length of time in ms to wait for a reply.
|
||||
* @throws XMPPException if there is an error executing the command.
|
||||
*/
|
||||
public abstract void execute(long timeout) throws XMPPException;
|
||||
|
||||
/**
|
||||
* Executes the next action of the command with the information provided in
|
||||
* the <code>response</code>. This form must be the answer form of the
|
||||
|
|
|
@ -92,10 +92,19 @@ public class RemoteCommand extends AdHocCommand {
|
|||
executeAction(Action.execute, SmackConfiguration.getPacketReplyTimeout());
|
||||
}
|
||||
|
||||
@Override
|
||||
/**
|
||||
* Executes the command, waiting up to the <tt>timeout</tt> for a reply.
|
||||
* This is invoked only on the first stage of the
|
||||
* command. It is invoked on every command. If there is a problem executing
|
||||
* the command it throws an XMPPException.
|
||||
*
|
||||
* @param timeout the length of time in ms to wait for a reply.
|
||||
* @throws XMPPException if there is an error executing the command.
|
||||
*/
|
||||
public void execute(long timeout) throws XMPPException {
|
||||
executeAction(Action.execute, timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the default action of the command with the information provided
|
||||
* in the Form. This form must be the anwser form of the previous stage. If
|
||||
|
|
Loading…
Reference in a new issue