net.sf.eBus.client.See: Description
| Interface | Description |
|---|---|
| MatchCondition |
Implement this method to test if the latest event matches the
pattern.
|
| Class | Description |
|---|---|
| EPatternFeed |
eBus pattern feeds sit between
eBus notification events and an
eBus client, searching for a
client-specified event pattern in the
notification event stream. |
| EPatternFeed.AbstractMatchFrame |
A match frame tracks an in-progress match.
|
| EventPattern |
EventPattern provides the two pieces of information
needed to do pattern matching: 1) the
notification feeds
providing the events used in the match and 2) the pattern
itself. |
| EventPattern.Builder |
Builder is the only way to create an
EventFeed instance. |
| EventPattern.FeedInfo |
This class provides the information needed by
EPatternFeed to
open and subscribe
to a notification message feed. |
| MatchEvent |
A match event reports an event pattern match.
|
| MatchEvent.Builder | |
| TestPublisherContext |
| Enum | Description |
|---|---|
| EventPattern.PatternType |
eBus patterns come in two varieties: ordered and
unordered.
|
net.sf.eBus.client. Currently this package
consists only of pattern feeds but there are more planned such
as:
ERepliers for the same message
key to be placed into active and stand-by status. All
repliers will see matching requests but only the active
replier's response is posted back to the requestor. If the
active replier advertisement is lost, the a stand-by
replier takes over as active.
notification feeds
looking for a series of events which match a user-defined
pattern. When a matching event series is found, a
MatchEvent is posted to the
subscriber.
MatchEvent contains all the matching events and
user-defined capture groups.
There are two pattern types: ordered and unordered. Ordered
patterns are a simple event regular expressions. Each
construct has the form
[one or more event names]{n, m}
where the specified events must appear at least n
times and at most m times. Events must arrive in
exactly the ordered specified by the pattern to make a match.
Unordered patterns specify how many of each event type must be received to match the pattern. If a pattern states that between 3 and 5 stock trade events and 1 to 2 stock quote events are needed, then any mix of trade and quote events satisfying these counts matches the pattern.
See EventPattern and
EPatternFeed to learn how
to create patterns and use pattern feeds.
Copyright © 2021. All rights reserved.