/* (non-Javadoc) * @see org.epics.pvdata.monitor.MonitorRequester#monitorEvent(org.epics.pvdata.monitor.Monitor) */ @Override public void monitorEvent(Monitor monitor) { MonitorElement monitorElement; while ((monitorElement = monitor.poll()) != null) { // TODO combine bitSet, etc.... do we need to copy structure? processMessage(monitorElement.getPVStructure()); monitor.release(monitorElement); } }
/* (non-Javadoc) * @see org.epics.pvdata.monitor.MonitorRequester#monitorConnect(org.epics.pvdata.pv.Status, org.epics.pvdata.monitor.Monitor, org.epics.pvdata.pv.Structure) */ @Override public void monitorConnect(Status status, Monitor monitor, Structure structure) { reportStatus("Failed to create monitor", status); if (status.isSuccess()) { // this.monitor = monitor; monitor.start(); } }