X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fchannel%2FCommandChannel.java;h=c75f8f8c6ce7f519c2f1b53392e37a49699f229a;hp=66f6c347f6a029a90327f1a1167a283b82defb5e;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandChannel.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandChannel.java index 66f6c347f..c75f8f8c6 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandChannel.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/channel/CommandChannel.java @@ -1,35 +1,35 @@ -package org.simantics.databoard.channel; - -import java.util.Collection; - -import org.simantics.databoard.binding.mutable.Variant; - -/** - * Command channel is a request-response channel. All operations are asynchronous. - * This interface is intended to be used by channel clients. - * For each callable command there is a commandId and specified datatype for request and error. - * - * @author Toni Kalajainen - */ -public interface CommandChannel { - - /** - * Invoke a service request. A asynchronous result object is returned - * at-once.

- * - * @param commandId command identifier - * @param request the request object - * @return asynchrouns result object - */ - AsyncRequest invoke( Variant commandId, Variant request ); - - /** - * Get all callable commands of the channel. - * This result is list of command specifications. For each command there is - * unique identification, result type and error type. - * - * @return commands - */ - Collection getCommands(); - -} +package org.simantics.databoard.channel; + +import java.util.Collection; + +import org.simantics.databoard.binding.mutable.Variant; + +/** + * Command channel is a request-response channel. All operations are asynchronous. + * This interface is intended to be used by channel clients. + * For each callable command there is a commandId and specified datatype for request and error. + * + * @author Toni Kalajainen + */ +public interface CommandChannel { + + /** + * Invoke a service request. A asynchronous result object is returned + * at-once.

+ * + * @param commandId command identifier + * @param request the request object + * @return asynchrouns result object + */ + AsyncRequest invoke( Variant commandId, Variant request ); + + /** + * Get all callable commands of the channel. + * This result is list of command specifications. For each command there is + * unique identification, result type and error type. + * + * @return commands + */ + Collection getCommands(); + +}