|
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 | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.history.HistoryQueryImpl
public class HistoryQueryImpl
The HistoryQueryImpl is an implementation of the HistoryQuery interface. It 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.
| Constructor Summary | |
|---|---|
HistoryQueryImpl(String queryString)
Creates an instance of HistoryQueryImpl by specifying the query string it was created for. |
|
| Method Summary | |
|---|---|
(package private) void |
addHistoryRecord(HistoryRecord record)
Adds the given HistoryRecord to the result list of this query and notifies all interested listeners that a new record is received. |
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. |
(package private) boolean |
isCanceled()
Indicates if this query has been canceled. |
void |
removeHistoryRecordsListener(HistoryQueryListener l)
Removes the given HistoryQueryListener from the list of listeners interested in query result changes. |
(package private) void |
setStatus(int queryStatus)
Sets this query status to the given queryStatus and notifies all interested listeners of the change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HistoryQueryImpl(String queryString)
queryString - the query string we're looking for in this query| Method Detail |
|---|
public void cancel()
cancel in interface HistoryQueryboolean isCanceled()
public 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.
getHistoryRecords in interface HistoryQuerypublic void addHistoryRecordsListener(HistoryQueryListener l)
addHistoryRecordsListener in interface HistoryQueryl - the HistoryQueryListener to addpublic void removeHistoryRecordsListener(HistoryQueryListener l)
removeHistoryRecordsListener in interface HistoryQueryl - the HistoryQueryListener to removevoid addHistoryRecord(HistoryRecord record)
record - the HistoryRecord to addvoid setStatus(int queryStatus)
queryStatus - the new query status to setpublic String getQueryString()
getQueryString in interface HistoryQuery
|
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 | |||||||||