public MemberState state() {
        return state;
    }
@return Current state of this member in relationship to a group, as defined in
{@link MemberState}.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareMembershipManager.java