public VisitorResponse getNext() { return params.getDataHandler().getNext(); }
public VisitorResponse getNext(int timeoutMilliseconds) throws InterruptedException { return params.getDataHandler().getNext(timeoutMilliseconds); }
@Override public VisitorResponse getNext(int timeoutMilliseconds) throws InterruptedException { if (params.getLocalDataHandler() == null) { throw new IllegalStateException("Data has been routed to external source for this visitor"); } return params.getLocalDataHandler().getNext(timeoutMilliseconds); }
@Override public VisitorResponse getNext() { if (params.getLocalDataHandler() == null) { throw new IllegalStateException("Data has been routed to external source for this visitor"); } return params.getLocalDataHandler().getNext(); }