public interface ReadZoneMonitoringService
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 wholereader)
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.
|
void |
unsubscribe(ReadZoneSubscriber subscriber)
Unsubscribe from arrival and departure events
|
void subscribe(ReadZoneSubscriber subscriber)
subscriber
- The subscribervoid subscribe(ReadZoneSubscriber subscriber, java.util.List<ReadZone> readZones, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit)
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.void subscribe(ReadZoneSubscriber subscriber, java.util.List<ReadZone> readZones, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit, boolean wholereader)
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.void subscribe(ReadZoneSubscriber subscriber, java.util.List<ReadZone> readZones, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit, boolean wholereader, boolean useRegex)
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?void subscribe(ReadZoneSubscriber subscriber, ReadZone readZone, java.lang.Float departureTime, java.util.concurrent.TimeUnit timeUnit)
subscriber
- readZone
- departureTime
- timeUnit
- void unsubscribe(ReadZoneSubscriber subscriber)
subscriber
-