com.ontimize.util.gis.client.defaultimplementations.cache
Interface IDispatchQuery

All Known Implementing Classes:
DispatchQuery

public interface IDispatchQuery

Dispatching query interface


Field Summary
static java.lang.String PARAMETER_APPLIED_FILTERS
           
static java.lang.String PARAMETER_LAYER_KEYS
           
static java.lang.String PARAMETER_REQUESTED_DATA
           
static java.lang.String PARAMETER_REQUESTER_ID
           
 
Method Summary
 void addRequestedData(java.lang.Object requestedData, java.lang.Object appliedFilters, java.lang.Object layerKeys, java.lang.Object requesterId)
          Add new data to the dispatch query in order to send it to the requester
 java.util.concurrent.locks.Condition getEmptyCondition()
          Get the empty dispatch query condition reference
 java.util.concurrent.locks.Lock getLock()
          Get the reference of the dispatch query lock
 java.lang.Object getRequestedData()
          Gets the geographic data located first in the dispatch query
 

Field Detail

PARAMETER_REQUESTED_DATA

static final java.lang.String PARAMETER_REQUESTED_DATA
See Also:
Constant Field Values

PARAMETER_APPLIED_FILTERS

static final java.lang.String PARAMETER_APPLIED_FILTERS
See Also:
Constant Field Values

PARAMETER_LAYER_KEYS

static final java.lang.String PARAMETER_LAYER_KEYS
See Also:
Constant Field Values

PARAMETER_REQUESTER_ID

static final java.lang.String PARAMETER_REQUESTER_ID
See Also:
Constant Field Values
Method Detail

addRequestedData

void addRequestedData(java.lang.Object requestedData,
                      java.lang.Object appliedFilters,
                      java.lang.Object layerKeys,
                      java.lang.Object requesterId)
Add new data to the dispatch query in order to send it to the requester

Parameters:
requestedData - Geographic data obtained from the request
appliedFilters - Filters applied on request
layerKeys - Identifier of the data related gis layer
requesterId - Data requester identifier, usually the gis map viewer

getRequestedData

java.lang.Object getRequestedData()
Gets the geographic data located first in the dispatch query

Returns:
First data in order to dispatch

getLock

java.util.concurrent.locks.Lock getLock()
Get the reference of the dispatch query lock

Returns:
Query lock

getEmptyCondition

java.util.concurrent.locks.Condition getEmptyCondition()
Get the empty dispatch query condition reference

Returns:
Empty dispatch query condition