Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/IChannel.java')
-rw-r--r--plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/IChannel.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/IChannel.java b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/IChannel.java
index 92168ec43..23f6e59b7 100644
--- a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/IChannel.java
+++ b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/protocol/IChannel.java
@@ -73,7 +73,8 @@ public interface IChannel {
void result(IToken token, byte[] data);
/**
- * Called when communication channel was closed while command was waiting for result.
+ * Called when command is terminated because communication channel was closed or
+ * command is not recognized by remote peer.
* @param token - command handle
* @param error - exception that forced the channel to close
*/
@@ -91,6 +92,18 @@ public interface IChannel {
void sendResult(IToken token, byte[] results);
/**
+ * Reject a command by sending "N" result message to remote peer.
+ * Clients should reject commands that they don't recognize.
+ * Messages can be queued locally before
+ * transmission. Sending messages too fast can fill up communication channel
+ * buffers. Calling thread will be blocked until enough buffer space is
+ * freed up by transmitting pending messages.
+ * @param token - command handle
+ * @param results - result message arguments encoded into array of bytes
+ */
+ void rejectCommand(IToken token);
+
+ /**
* Get current level of out-bound traffic congestion.
*
* @return integer value in range –100..100, where –100 means no pending

Back to the top