1 /*******************************************************************************
2 * Copyright (c) 2009, 2013 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.component
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
16 import org
.eclipse
.linuxtools
.tmf
.core
.request
.ITmfEventRequest
;
17 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.ITmfContext
;
20 * This is the interface of the data providers in TMF. Data providers have the
21 * capability of handling data requests.
24 * @author Francois Chouinard
26 * @see TmfEventProvider
28 public interface ITmfEventProvider
extends ITmfComponent
{
31 * Queue the request for processing.
33 * @param request The request to process
35 void sendRequest(ITmfEventRequest request
);
38 * Queue the coalesced requests.
43 * Increments/decrements the pending requests counters and fires the request
44 * if necessary (counter == 0). Used for coalescing requests across multiple
48 * Should we increment (true) or decrement (false) the pending
51 void notifyPendingRequest(boolean isIncrement
);
54 * Return the next event based on the context supplied. The context
55 * will be updated for the subsequent read.
57 * @param context the trace read context (updated)
58 * @return the event referred to by context
60 ITmfEvent
getNext(ITmfContext context
);
This page took 0.035655 seconds and 6 git commands to generate.