OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.mojo.bindings; | |
6 | |
7 import org.chromium.mojo.system.MessagePipeHandle; | |
8 | |
9 /** | |
10 * A {@link Router} will handle mojo message and forward those to a {@link Conne ctor}. It handles | |
rmcilroy
2014/07/10 19:03:58
/s/It handles.../It deals with parsing of headers
qsr
2014/07/11 11:42:08
Done.
| |
11 * parsing headers and add request ids to be able to match response to request. | |
12 */ | |
13 public interface Router extends MessageReceiverWithResponder, HandleOwner<Messag ePipeHandle> { | |
14 | |
15 /** | |
16 * Start listening for incoming messages. | |
17 */ | |
18 public void start(); | |
19 | |
20 /** | |
21 * Set the {@link MessageReceiverWithResponder} that will deserialize and us e the message | |
22 * received from the pipe. | |
23 */ | |
24 public void setIncomingMessageReceiver(MessageReceiverWithResponder incoming MessageReceiver); | |
25 | |
26 /** | |
27 * Set the handle that will be notified of errors on the message pipe. | |
28 */ | |
29 public void setErrorHandler(ConnectionErrorHandler errorHandler); | |
30 | |
31 /** | |
32 * @see java.io.Closeable#close() | |
33 */ | |
34 @Override | |
35 public void close(); | |
36 } | |
OLD | NEW |