[Bug292967] Implemented items [1] and [2] of of request coalescing. Augmented unit...
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf / src / org / eclipse / linuxtools / tmf / request / ITmfRequestHandler.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.request;
14
15 import org.eclipse.linuxtools.tmf.event.TmfData;
16
17 /**
18 * <b><u>ITmfRequestHandler</u></b>
19 * <p>
20 * TODO: Implement me. Please.
21 * @param <V>
22 */
23 public interface ITmfRequestHandler<T extends TmfData> {
24
25 /**
26 * Process the request. The client thread can be suspended until the
27 * request is completed (e.g. for a specific range of events) or it
28 * can choose to process the events asynchronously (e.g. for streaming).
29 *
30 * If the request can't be serviced, it will fail (i.e. isFailed() will be set).
31 *
32 * @param request The request to process
33 * @param waitForCompletion Suspend the client thread until the request completes
34 */
35 public void processRequest(TmfDataRequest<T> request, boolean waitForCompletion);
36 }
This page took 0.032405 seconds and 5 git commands to generate.