/** {@inheritDoc} */ @Override public void close() throws IOException { LOG.debug("Closing TableUserRegistration {}.", this); unregister(); }
/** * Update this TableUserRegistration with the supplied layout ID. * * @param layoutID id of layout being used by registered table user. * @throws IOException on unrecoverable ZooKeeper error. */ public void updateRegisteredLayout(String layoutID) throws IOException { synchronized (mMonitor) { unregister(); register(layoutID); } }
/** * Creates a registration for a table user. * * <p> The registration must be started and closed. </p> * * @param userID of user to be registered. * @param tableURI of table the user is using. * @return a new table user registration for the user and table. */ public TableUserRegistration newTableUserRegistration(String userID, FijiURI tableURI) { return new TableUserRegistration(userID, tableURI); }