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

All Known Implementing Classes:
RequestQuery, RequestQueryWithBuffer, RequestQueryWithDeleting

public interface IRequestQuery

Data request query interface


Field Summary
static java.lang.String PARAMETER_REQUEST_DATA
           
static java.lang.String PARAMETER_REQUESTER_ID
           
 
Method Summary
 void addRequest(java.lang.Object requestData, java.lang.Object requesterId)
          Add a new data request to the pending requests stack
 java.util.concurrent.locks.Condition getEmptyCondition()
          Get the empty stack condition reference
 java.util.concurrent.locks.Lock getLock()
          Get the reference of the pending requests stack lock
 int getQueriesStackSize()
           
 java.lang.Object getRequest()
          Get the new pending request located at the top of the stack
 

Field Detail

PARAMETER_REQUEST_DATA

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

PARAMETER_REQUESTER_ID

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

addRequest

void addRequest(java.lang.Object requestData,
                java.lang.Object requesterId)
Add a new data request to the pending requests stack

Parameters:
requestData - Requested data description
requesterId - Identifier for the requesting class

getRequest

java.lang.Object getRequest()
Get the new pending request located at the top of the stack

Returns:
First pending request

getLock

java.util.concurrent.locks.Lock getLock()
Get the reference of the pending requests stack lock

Returns:
Stack lock

getEmptyCondition

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

Returns:
Empty request stack condition

getQueriesStackSize

int getQueriesStackSize()