/** * Used by a reader to get a fence that can be added to its transaction context. * * @param fenceId uniquely identifies the data that this fence is used to synchronize. * If the data is a table cell then this id can be composed of the table name, row key * and column key for the data. * @return {@link TransactionAware} to be added to reader's transaction context. */ public static TransactionAware create(byte[] fenceId) { return new ReadFence(fenceId); }
/** * Used by a reader to get a fence that can be added to its transaction context. * * @param fenceId uniquely identifies the data that this fence is used to synchronize. * If the data is a table cell then this id can be composed of the table name, row key * and column key for the data. * @return {@link TransactionAware} to be added to reader's transaction context. */ public static TransactionAware create(byte[] fenceId) { return new ReadFence(fenceId); }