public void run() { notifyObserverRelations(filter); }}); }
public void run() { notifyObserverRelations(filter); }}); }
@Override public void notifyObserverRelations() { super.notifyObserverRelations(); }
@Override public void notifyObserverRelations() { super.notifyObserverRelations(); }
/** * Notifies a filtered set of CoAP clients that have established an observe * relation with this resource that the state has changed by reprocessing * their original request that has established the relation. The notification * is done by the executor of this resource or on the executor of its parent or * transitively ancestor. If no ancestor defines its own executor, the * thread that has called this method performs the notification. * * @param filter filter to select set of relations. * <code>null</code>, if all clients should be notified. * * @see #changed() */ public void changed(final ObserveRelationFilter filter) { Executor executor = getExecutor(); // use thread from the protocol stage if (executor == null) notifyObserverRelations(filter); // use thread from the resource pool else executor.execute(new Runnable() { public void run() { notifyObserverRelations(filter); }}); }
/** * Notifies a filtered set of CoAP clients that have established an observe * relation with this resource that the state has changed by reprocessing * their original request that has established the relation. The notification * is done by the executor of this resource or on the executor of its parent or * transitively ancestor. If no ancestor defines its own executor, the * thread that has called this method performs the notification. * * @param filter filter to select set of relations. * <code>null</code>, if all clients should be notified. * * @see #changed() */ public void changed(final ObserveRelationFilter filter) { Executor executor = getExecutor(); // use thread from the protocol stage if (executor == null) notifyObserverRelations(filter); // use thread from the resource pool else executor.execute(new Runnable() { public void run() { notifyObserverRelations(filter); }}); }