public interface IRaceSubscriber extends ISubscriber
This interface is used to add subscriptions for a IRace object.
| Modifier and Type | Method and Description |
|---|---|
void |
subscribeControlPassings(IControlPassingsListener listener)
Subscribes to control passing data for the specified race.
|
void |
subscribeControlPositions(IControlPointPositionListener listener)
Subscribes to control positions for the race.
|
void |
subscribeControlPositions(IControlPointPositionListener listener,
long fromTime,
long toTime)
Subscribes to control positions for the race, also retrieving historic
data.
|
void |
subscribePositions(IPositionListener listener)
Subscribes to competitor positions for a given Race.
|
void |
subscribePositions(IPositionListener listener,
long fromTime,
long toTime)
Subscribes to competitor positions for a given Race.
|
void |
subscribePositionsOffset(IPositionOffsetListener listener)
Subscribes to offset competitor positions for a given Race.
|
void |
subscribePositionsOffset(IPositionOffsetListener listener,
long fromTime,
long toTime)
Subscribes to offset competitor positions for a given Race, including
historic data.
|
void |
subscribePositionsSnapped(IPositionSnappedListener listener)
Subscribes to snapped competitor positions for a given Race.
|
void |
subscribePositionsSnapped(IPositionSnappedListener listener,
long fromTime,
long toTime)
Subscribes to snapped competitor positions for a given Race, including
historic data.
|
void |
subscribeRaceCompetitor(IRaceCompetitorListener listener)
Subscribes to race competitor for a given Race.
|
void |
subscribeRaceMessages(IRaceMessageListener listener)
Subscribe to messages for a race.
|
void |
subscribeRaceTimesChanges(IRaceStartStopTimesChangeListener listener)
Subscribes to changes in race start and stop times.
|
void |
subscribeRouteChanges(IControlRouteChangeListener listener)
Subscribes to route changes for a given Race.
|
void |
unsubscribeControlPassings(IControlPassingsListener listener)
Unsubscribes to control passing data for the specified race.
|
void |
unsubscribeControlPositions(IControlPointPositionListener listener)
Unsubscribes to control positions.
|
void |
unsubscribePositions(IPositionListener listener)
Unsubscribes to competitor positions for a given Race.
|
void |
unsubscribePositionsOffset(IPositionOffsetListener listener)
Unsubscribes to competitor positions for a given Race.
|
void |
unsubscribePositionsSnapped(IPositionSnappedListener listener)
Unsubscribes to competitor positions for a given Race.
|
void |
unsubscribeRaceCompetitor(IRaceCompetitorListener listener)
Unsubscribes to race competitor
|
void |
unsubscribeRaceMessages(IRaceMessageListener listener)
Unsubscribes to race messages
|
void |
unsubscribeRaceTimesChanges(IRaceStartStopTimesChangeListener listener)
Unsubscribes to changes in race start and stop times.
|
void |
unsubscribeRouteChanges(IControlRouteChangeListener listener)
Unsubscribes to route changes for a given Race.
|
start, stop, subscribeConnectionStatus, unsubscribeConnectionStatusvoid subscribePositions(IPositionListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.void subscribePositions(IPositionListener listener, long fromTime, long toTime)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.fromTime - stored positions (if supported) will be requested from this time
and forward. The value 0 is allowed and means all
historic data.toTime - The value Long.MAXVALUE means all data in the futurevoid unsubscribePositions(IPositionListener listener)
listener - the listener used in the subscribe methodvoid subscribePositionsSnapped(IPositionSnappedListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.void subscribePositionsSnapped(IPositionSnappedListener listener, long fromTime, long toTime)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.fromTime - stored positions (if supported) will be requested from this time
and forward. The value 0 is allowed and means all
historic data.toTime - The value Long.MAXVALUE means all data in the futurevoid unsubscribePositionsSnapped(IPositionSnappedListener listener)
listener - the listener used in the subscribe methodvoid subscribePositionsOffset(IPositionOffsetListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.void subscribePositionsOffset(IPositionOffsetListener listener, long fromTime, long toTime)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.fromTime - stored positions (if supported) will be requested from this time
and forward. The value 0 is allowed and means all
historic data.toTime - The value Long.MAXVALUE means all data in the futurevoid unsubscribePositionsOffset(IPositionOffsetListener listener)
listener - the listener used in the subscribe methodvoid subscribeControlPositions(IControlPointPositionListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
It also returns the static positions using the
IRace.getTrackingStartTime() as the value for the position time.
These positions are sent before to start to send the dynamic positions.
listener - the listener to receive the positions.void subscribeControlPositions(IControlPointPositionListener listener, long fromTime, long toTime)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
It also returns the static positions using the
IRace.getTrackingStartTime() as the value for the position time.
These positions are sent before to start to send the dynamic positions.
listener - the listener to receive the positions.fromTime - stored positions (if supported) will be requested from this time
and forward. The value 0 is allowed and means all
historic data.toTime - The value Long.MAXVALUE means all data in the futurevoid unsubscribeControlPositions(IControlPointPositionListener listener)
listener - the listener used in the subscribe methodvoid subscribeControlPassings(IControlPassingsListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the control passings.void unsubscribeControlPassings(IControlPassingsListener listener)
listener - the listener used in the subscribe methodvoid subscribeRaceTimesChanges(IRaceStartStopTimesChangeListener listener)
The method returns immediately and the changes are subsequently sent to the given listener, as they are received.
listener - the listener to receive the changes.void unsubscribeRaceTimesChanges(IRaceStartStopTimesChangeListener listener)
listener - the listener used in the subscribe methodvoid subscribeRouteChanges(IControlRouteChangeListener listener)
The method returns immediately and the positions are subsequently sent to the given listener, as they are received.
listener - the listener to receive the positions.void unsubscribeRouteChanges(IControlRouteChangeListener listener)
listener - the listener used in the subscribe methodvoid subscribeRaceCompetitor(IRaceCompetitorListener listener)
listener - the listener to receive the new race competitor.void unsubscribeRaceCompetitor(IRaceCompetitorListener listener)
listener - the listener used in the subscribe methodvoid subscribeRaceMessages(IRaceMessageListener listener)
listener - Listener the listener to receive the messagesvoid unsubscribeRaceMessages(IRaceMessageListener listener)
listener - the listener used in the subscribe method.