|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HistoryQuery
The HistoryQuery corresponds to a query made through the InteractiveHistoryReader. It allows to be canceled, to listen for changes in the results and to obtain initial results if available.
| Method Summary | |
|---|---|
void |
addHistoryRecordsListener(HistoryQueryListener l)
Adds the given HistoryQueryListener to the list of listeners interested in query result changes. |
void |
cancel()
Cancels this query. |
Collection<HistoryRecord> |
getHistoryRecords()
Returns a collection of the results for this query. |
String |
getQueryString()
Returns the query string, this query was created for. |
void |
removeHistoryRecordsListener(HistoryQueryListener l)
Removes the given HistoryQueryListener from the list of listeners interested in query result changes. |
| Method Detail |
|---|
void cancel()
String getQueryString()
Collection<HistoryRecord> getHistoryRecords()
This method could be used in order to obtain first fast initial results and then obtain the additional results through the HistoryQueryListener, which should improve user experience when waiting for results.
void addHistoryRecordsListener(HistoryQueryListener l)
l - the HistoryQueryListener to addvoid removeHistoryRecordsListener(HistoryQueryListener l)
l - the HistoryQueryListener to remove
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||