com.ontimize.util.gis.client.defaultimplementations.cache
Class DispatchQuery
java.lang.Object
com.ontimize.util.gis.client.defaultimplementations.cache.DispatchQuery
- All Implemented Interfaces:
- IDispatchQuery
public class DispatchQuery
- extends java.lang.Object
- implements IDispatchQuery
Basic dispatch query
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queryLock
protected java.util.concurrent.locks.Lock queryLock
emptyQueryCondition
protected java.util.concurrent.locks.Condition emptyQueryCondition
dispatchData
protected java.util.Stack dispatchData
DispatchQuery
public DispatchQuery()
getEmptyCondition
public java.util.concurrent.locks.Condition getEmptyCondition()
- Description copied from interface:
IDispatchQuery
- Get the empty dispatch query condition reference
- Specified by:
getEmptyCondition in interface IDispatchQuery
- Returns:
- Empty dispatch query condition
getLock
public java.util.concurrent.locks.Lock getLock()
- Description copied from interface:
IDispatchQuery
- Get the reference of the dispatch query lock
- Specified by:
getLock in interface IDispatchQuery
- Returns:
- Query lock
addRequestedData
public void addRequestedData(java.lang.Object requestedData,
java.lang.Object appliedFilters,
java.lang.Object layerKeys,
java.lang.Object requesterId)
- Description copied from interface:
IDispatchQuery
- Add new data to the dispatch query in order to send it to the requester
- Specified by:
addRequestedData in interface IDispatchQuery
- Parameters:
requestedData - Geographic data obtained from the requestappliedFilters - Filters applied on requestlayerKeys - Identifier of the data related gis layerrequesterId - Data requester identifier, usually the gis map viewer
getRequestedData
public java.lang.Object getRequestedData()
- Description copied from interface:
IDispatchQuery
- Gets the geographic data located first in the dispatch query
- Specified by:
getRequestedData in interface IDispatchQuery
- Returns:
- First data in order to dispatch