1 package org.simantics.databoard.channel;
\r
3 import java.util.Collection;
\r
6 * Server interface of command channel. <p>
\r
8 * For each callable command there is a well-known commandId and datatype. <p>
\r
10 * @author Toni Kalajainen <toni.kalajainen@iki.fi>
\r
12 public interface ServiceHandler {
\r
15 * Handle service request from the client. The implementation may handle
\r
16 * the service at once or later, even in another thread. The result is
\r
17 * written to the asynchronous result object. <p>
\r
21 void handleRequest( ServiceRequest request );
\r
24 * Get all callable commands handled by this service handler.
\r
25 * This result is list of command specifications. For each command there is
\r
26 * unique identification, result type and error type.
\r
30 Collection<CommandSpec> getCommands();
\r