Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleShareGroupDescription
linenumberstrue
public class ShareGroupDescription {
    private final String groupId;
    private final Collection<MemberDescription> members;
    private final ShareGroupState state;
    private final Node coordinator;
    private final Set<AclOperation> authorizedOperations;
	private final int groupEpoch;
    private final int targetAssignmentEpoch;

 	// ...

	/**
	 * The epoch of the share group.
	 */
	public int groupEpoch() {
		return groupEpoch;
	}

	/**
	 * The epoch of the target assignment.
	 */
	public int targetAssignmentEpoch() {
		return targetAssignmentEpoch;
	}
}


MemberDescription

Add a new field fields memberEpoch and protocol. For classic group member, there is no member epoch, so using Optional for the new field.

...