/** * Construct a new instance and set the callback. * * @param callback An object implementing the * SourceCallback interface that should receive data from this * source. */ public BaseVehicleDataSource(SourceCallback callback) { setCallback(callback); }
/** * Clear the callback so no further updates are sent. * * Subclasses should be sure to call super.stop() so they also stop sending * updates when killed by a user. */ @Override public void stop() { disconnected(); setCallback(null); }