/** * * @param observable The observable to get informed about data updates. * @param remoteService The remote service to get informed about data updates. * @param fieldDescriptors The field descriptors which are used for the internal registry synchronization. * @throws InstantiationException is thrown in case the instantiation fails. */ public SynchronizedRemoteRegistry(final Observable observable, final RSBRemoteService<M> remoteService, final Descriptors.FieldDescriptor... fieldDescriptors) throws InstantiationException { this.observable = observable; this.fieldDescriptors = fieldDescriptors; this.remoteService = remoteService; this.remoteRegistrySynchronizer = new RemoteRegistrySynchronizer(this, fieldDescriptors); }
/** * * @param observable The observable to get informed about data updates. * @param remoteService The remote service to get informed about data updates. * @param internalMap the internal map instance of this registry. * @param fieldDescriptors The field descriptors which are used for the internal registry synchronization. * @throws InstantiationException is thrown in case the instantiation fails. */ public SynchronizedRemoteRegistry(final Observable observable, final RSBRemoteService<M> remoteService, final Map<KEY, IdentifiableMessage<KEY, M, MB>> internalMap, final Descriptors.FieldDescriptor... fieldDescriptors) throws InstantiationException { super(internalMap); this.observable = observable; this.fieldDescriptors = fieldDescriptors; this.remoteService = remoteService; this.remoteRegistrySynchronizer = new RemoteRegistrySynchronizer(this, fieldDescriptors); }
/** * * @param remoteService The remote service to get informed about data updates. * @param protobufFieldNumbers The field numbers to identify the descriptor fields which are used for the internal registry synchronization. * @throws InstantiationException is thrown in case the instantiation fails. */ public SynchronizedRemoteRegistry(final RSBRemoteService remoteService, final int... protobufFieldNumbers) throws InstantiationException { try { this.observable = null; this.fieldDescriptors = ProtoBufFieldProcessor.getFieldDescriptors(remoteService.getDataClass(), protobufFieldNumbers); this.remoteService = remoteService; this.remoteRegistrySynchronizer = new RemoteRegistrySynchronizer(this, fieldDescriptors); } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }
/** * * @param remoteService The remote service to get informed about data updates. * @param filter the filter which is used to synchronize the messages * @param protobufFieldNumbers The field numbers to identify the descriptor fields which are used for the internal registry synchronization. * @throws InstantiationException is thrown in case the instantiation fails. */ public SynchronizedRemoteRegistry(final RSBRemoteService remoteService, final AbstractFilter<M> filter, final int... protobufFieldNumbers) throws InstantiationException { try { this.fieldDescriptors = ProtoBufFieldProcessor.getFieldDescriptors(remoteService.getDataClass(), protobufFieldNumbers); this.remoteService = remoteService; this.filter = filter; this.remoteRegistrySynchronizer = new RemoteRegistrySynchronizer(this, fieldDescriptors, filter); } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }
/** * * @param observable The observable to get informed about data updates. * @param remoteService The remote service to get informed about data updates. * @param protobufFieldNumbers The field numbers to identify the descriptor fields which are used for the internal registry synchronization.. * @throws InstantiationException is thrown in case the instantiation fails. */ public SynchronizedRemoteRegistry(final Observable observable, final RSBRemoteService remoteService, final int... protobufFieldNumbers) throws InstantiationException { try { this.observable = observable; this.fieldDescriptors = ProtoBufFieldProcessor.getFieldDescriptors(remoteService.getDataClass(), protobufFieldNumbers); this.remoteService = remoteService; this.remoteRegistrySynchronizer = new RemoteRegistrySynchronizer(this, fieldDescriptors); } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }
/** * * @param observable The observable to get informed about data updates. * @param remoteService The remote service to get informed about data updates. * @param filter the filter which is used to synchronize the messages * @param protobufFieldNumbers The field numbers to identify the descriptor fields which are used for the internal registry synchronization. * @throws InstantiationException is thrown in case the instantiation fails. */ public SynchronizedRemoteRegistry(final Observable observable, final RSBRemoteService remoteService, final AbstractFilter<M> filter, final int... protobufFieldNumbers) throws InstantiationException { try { this.observable = observable; this.fieldDescriptors = ProtoBufFieldProcessor.getFieldDescriptors(remoteService.getDataClass(), protobufFieldNumbers); this.remoteService = remoteService; this.filter = filter; this.remoteRegistrySynchronizer = new RemoteRegistrySynchronizer(this, fieldDescriptors, filter); } catch (CouldNotPerformException ex) { throw new InstantiationException(this, ex); } }