|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContinuousMatchingProcess
The interface is a general interface for classes implementing a matching process that happens in the background (in a different thread).
The provided methods allow for controlling the process and adding or removing notification targets.
Nested Class Summary | |
---|---|
static interface |
ContinuousMatchingProcess.MatchNotificationReceiver
An implementation is able to act as a receiver for match notifications. |
Method Summary | |
---|---|
ContinuousMatchingProcess |
addMatchNotificationTarget(int thresholdK,
ContinuousMatchingProcess.MatchNotificationReceiver receiver)
Registers a ContinuousMatchingProcess.MatchNotificationReceiver as target for notifications for new matches below or with a
specified k (see Match . |
boolean |
isContinuouslyMatching()
|
ContinuousMatchingProcess |
removeMatchNotificationTarget(ContinuousMatchingProcess.MatchNotificationReceiver receiver)
Removes all registrations of the specified ContinuousMatchingProcess.MatchNotificationReceiver . |
ContinuousMatchingProcess |
startContinuousMatching()
Instructs the process to start or to resume (from the state in which it was stopped). |
ContinuousMatchingProcess |
stopContinuousMatching()
Instructs the process to stop. |
Method Detail |
---|
ContinuousMatchingProcess addMatchNotificationTarget(int thresholdK, ContinuousMatchingProcess.MatchNotificationReceiver receiver)
ContinuousMatchingProcess.MatchNotificationReceiver
as target for notifications for new matches below or with a
specified k (see Match
.
thresholdK
- - the threshold k.receiver
- - the receiver for the notifications.
ContinuousMatchingProcess removeMatchNotificationTarget(ContinuousMatchingProcess.MatchNotificationReceiver receiver)
ContinuousMatchingProcess.MatchNotificationReceiver
.
receiver
- - the specified notification receiver.
ContinuousMatchingProcess startContinuousMatching()
ContinuousMatchingProcess stopContinuousMatching()
boolean isContinuouslyMatching()
true
if the process is currently ongoing (in a separate thread). false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |