/** {@inheritDoc} */ @Override public Registration registerLayoutConsumer(LayoutConsumer consumer) throws IOException { return mTableLayoutMonitor.registerLayoutConsumer(consumer); }
/** * Register a layout consumer that must be updated before this table will report that it has * completed a table layout update. Sends the first update immediately before returning. * * @param consumer the LayoutConsumer to be registered. * @return a registration object which must be closed when layout updates are no longer needed. * @throws java.io.IOException in case of an error updating the LayoutConsumer. */ public Registration registerLayoutConsumer(LayoutConsumer consumer) throws IOException { final State state = mState.get(); Preconditions.checkState(state == State.OPEN, "Cannot register a new layout consumer to a FijiTable in state %s.", state); return mLayoutMonitor.registerLayoutConsumer(consumer); }
/** * Register a layout consumer that must be updated before this table will report that it has * completed a table layout update. Sends the first update immediately before returning. The * returned registration object must be closed when layout updates are no longer needed. * * @param consumer the LayoutConsumer to be registered. * @return a registration object which must be closed when layout updates are no longer needed. * @throws IOException in case of an error updating the LayoutConsumer. */ public Registration registerLayoutConsumer(LayoutConsumer consumer) throws IOException { final State state = mState.get(); Preconditions.checkState(state == State.OPEN, "Cannot register a new layout consumer to a FijiTable in state %s.", state); return mLayoutMonitor.registerLayoutConsumer(consumer); }