public class ReadZoneMonitoringServiceImpl extends RifidiAppService<ReadZoneSubscriber> implements ReadZoneMonitoringService
readZones
LAZY_START
Constructor and Description |
---|
ReadZoneMonitoringServiceImpl(java.lang.String group,
java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
subscribe(ReadZoneSubscriber subscriber)
Subscribe to arrival and departure events from all readers and antennas.
|
void |
subscribe(ReadZoneSubscriber subscriber,
java.util.List<ReadZone> readZones,
java.lang.Float departureTime,
java.util.concurrent.TimeUnit timeUnit)
Subscribe to arrival and departure events from the given read zones
|
void |
subscribe(ReadZoneSubscriber subscriber,
java.util.List<ReadZone> readZones,
java.lang.Float departureTime,
java.util.concurrent.TimeUnit timeUnit,
boolean unique)
Subscribe to arrival and departure events from the given read zones
|
void |
subscribe(ReadZoneSubscriber subscriber,
java.util.List<ReadZone> readZones,
java.lang.Float departureTime,
java.util.concurrent.TimeUnit timeUnit,
boolean wholereader,
boolean useRegex)
Subscribe to arrival and departure events from the given read zones
|
void |
subscribe(ReadZoneSubscriber subscriber,
ReadZone readZone,
java.lang.Float departureTime,
java.util.concurrent.TimeUnit timeUnit)
Subscribe to the arrival and departure events for the given read zone.
|
unsubscribe
compareTo, equals, getGroup, getName, getState, hashCode, initialize, lazyStart, setAppProperties, setBundleContext, setEsperService, start, stop, toString
unsubscribe
public ReadZoneMonitoringServiceImpl(java.lang.String group, java.lang.String name)
group
- the group this application is a part ofname
- The name of the applicationpublic void subscribe(ReadZoneSubscriber subscriber, java.util.List<ReadZone> readZones, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit)
ReadZoneMonitoringService
subscribe
in interface ReadZoneMonitoringService
subscriber
- The subscriberreadZones
- The readzones to monitor. If the set is empty, monitor all
readers and antennas.departureTime
- If this amount of time passes since the last time a tag has
been seen, then fire a departure event.timeUnit
- The unit used for the departure time.public void subscribe(ReadZoneSubscriber subscriber, java.util.List<ReadZone> readZones, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit, boolean unique)
ReadZoneMonitoringService
subscribe
in interface ReadZoneMonitoringService
subscriber
- The subscriberreadZones
- The readzones to monitor. If the set is empty, monitor all
readers and antennas.departureTime
- If this amount of time passes since the last time a tag has
been seen, then fire a departure event.timeUnit
- The unit used for the departure time.unique
- If this value is set to "true", the subscriber will not
receive new arrival events if the tag switches between
antennas or readers that are included in the given readzones.
For instance, if the reader LLRP_1 antennas 1 and 2 are being
monitored, and the tag disappears on antenna 1 and reappears
on antenna 2, a new arrival event will not occur for the
switch to antenna 2.public void subscribe(ReadZoneSubscriber subscriber, java.util.List<ReadZone> readZones, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit, boolean wholereader, boolean useRegex)
ReadZoneMonitoringService
subscribe
in interface ReadZoneMonitoringService
subscriber
- The subscriberreadZones
- The readzones to monitor. If the set is empty, monitor all
readers and antennas.departureTime
- If this amount of time passes since the last time a tag has
been seen, then fire a departure event.timeUnit
- The unit used for the departure time.wholereader
- If this value is set to "true", the subscriber will not
receive new arrival events if the tag switches between
antennas or readers that are included in the given readzones.
For instance, if the reader LLRP_1 antennas 1 and 2 are being
monitored, and the tag disappears on antenna 1 and reappears
on antenna 2, a new arrival event will not occur for the
switch to antenna 2.useRegex
- Are you using regular expressions in the readezones you pass in?public void subscribe(ReadZoneSubscriber subscriber)
ReadZoneMonitoringService
subscribe
in interface ReadZoneMonitoringService
subscriber
- The subscriberpublic void subscribe(ReadZoneSubscriber subscriber, ReadZone readZone, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit)
ReadZoneMonitoringService
subscribe
in interface ReadZoneMonitoringService