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